* {
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: url('/images/bgLogin.jpg') no-repeat center center fixed;
    background-size: cover;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 0.8s ease-out;
}

.container {
    display: flex;
    align-items: center;
    height: 100vh;
}

.left-section {
    flex: 1;
    max-width: 950px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 40px 50px;
    margin-right: -40px;
    color: white;
    border-radius: 20px;
}

.logo {
    width: 190px;
    height: auto;
    margin-right: 20px;
}

.separator {
    border-left: 3px solid white;
    height: 26vh;
    margin: 0 45px;
}

.slogan h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.4;
    color: white;
}

.legacy {
    color: #D4AF37;
}

.form-section {
    background: rgba(23, 53, 83);
    padding: 30px;
    border-radius: 15px;
    width: 420px;
    height: 400px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
    font-weight: normal;
}

.form-section label {
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
    font-weight: normal;
}

.form-section input[type="text"],
.form-section input[type="password"]
{
    width: 100%; padding: 8px 10px;
    margin-bottom: 12px;
    border: none;
    border-radius: 6px !important;
    font-size: 13px;
    transition: all 0.3s ease;
}

.form-section input:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
}

.form-section .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    border-radius: 20px !important;
}

.form-section .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-section .actions a {
    color: #fff;
    text-decoration: underline;
    font-size: 13px;
}

.form-section button {
    background-color: white;
    color: #001324;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-section button:hover {
    background-color: #ddd;
    transform: scale(1.02);
}

.success-message, .error-message {
    font-size: 0.95em;
    line-height: 1.4;
}

.success-message li, .error-message li {
    list-style: none;
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        padding: 60px 0;
    }

    .left-section {
        background: none !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        margin-left: -50px;
    }

    .separator {
        display: none;
    }

    .logo {
        width: 140px;
        margin: 0 auto 10px;
        filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.5));
    }

    .slogan h1 {
        font-size: 22px;
        line-height: 1.3;
        color: #fff;
        text-shadow:
            0px 2px 4px rgba(0, 0, 0, 0.6),
            0px 4px 8px rgba(0, 0, 0, 0.4);
    }

    .legacy {
        color: #D4AF37;
        text-shadow:
            0px 2px 4px rgba(0, 0, 0, 0.6),
            0px 4px 8px rgba(0, 0, 0, 0.4);
    }

    .form-section {
        width: 100%;
        max-width: 420px;
        height: auto;
        margin: 20px auto 0;
        padding: 25px;
    }
}
