﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
/*    background: linear-gradient(135deg, #760e26 0%, #a31835 100%);*/
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(118, 14, 38, 0.3);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 550px;
    display: flex;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
    text-align: center;
    width: 100%;
}

h1 {
    font-weight: 600;
    margin-bottom: 30px;
    color: #760e26;
    font-size: 28px;
}

h2 {
    color: #fff;
    font-weight: 500;
    margin-bottom: 15px;
}

p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin: 15px 0;
}

input {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 10px 0;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s;
}

    input:focus {
        outline: none;
        border-color: #760e26;
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(118, 14, 38, 0.1);
    }

button {
    border-radius: 10px;
    border: 2px solid #760e26;
    background-color: #760e26;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

    button:hover {
        background-color: #5a0b1e;
        border-color: #5a0b1e;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(118, 14, 38, 0.3);
    }

    button:active {
        transform: translateY(0);
    }

.ghost {
    border-radius: 10px;
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 35px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

    .ghost:hover {
        background-color: #fff;
        color: #760e26;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    }

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.overlay {
    background: linear-gradient(135deg, #760e26 0%, #a31835 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.image {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    object-fit: contain;
}

.text-danger {
    color: #dc3545;
    font-size: 12px;
    margin-top: -5px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.success-message {
    background-color: #fff;
    border: 1px solid #760e26;
    color: #760e26;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.5s ease-in;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .form-container {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 30px;
    }

    .overlay-container {
        display: none;
    }

    form {
        padding: 0 20px;
    }

    h1 {
        font-size: 24px;
    }
}
