html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    background: url('../img/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: #fffffff1;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: slideUp 0.4s ease-in-out;
    flex-direction: row;
}

.auth-left,
.auth-right {
    padding: 2rem;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.auth-left {
    background: linear-gradient(135deg, #474544 0%, #5a5857 50%, #6b6a69 100%);
    color: white;
    align-items: center;
    text-align: center;
    flex: 1.4;
}

.auth-left img {
    max-width: 60%;
    margin-bottom: 1.5rem;
}

.auth-left h1 {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 1rem;
    white-space: normal;
}

.auth-left p {
    font-size: 1rem;
    margin-top: 1.2rem;
    line-height: 1.7;
    opacity: 0.95;
    font-weight: 400;
    color: #f1f1f1;
    max-width: 95%;
    text-align: justify;
    text-justify: inter-word;
    animation: fadeIn 1s ease-in;
}

.auth-left .auth-links {
    margin-top: 1.4rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.auth-left .auth-links a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background 0.2s ease;
    white-space: nowrap;
}

.auth-left .auth-links a:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
}

.auth-right h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

.auth-right p {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
}

.auth-right .login-header-big {
    color: #a90329;
}

.auth-right .btn-primary {
    background: #474544 !important;
    border-color: #474544 !important;
}

.auth-right .btn-primary:hover,
.auth-right .btn-primary:focus {
    background: #5a5857 !important;
    border-color: #5a5857 !important;
}

.login-user-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.login-user-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: linear-gradient(135deg, #474544 0%, #5a5857 50%, #6b6a69 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 4px 0 0 4px;
    white-space: nowrap;
    border: 1px solid #474544;
    border-right: none;
}

.login-user-wrap .input {
    flex: 1;
    margin: 0;
}

.login-user-wrap .input input {
    border-radius: 0 4px 4px 0 !important;
}

.form-control {
    height: 48px;
    font-size: 1rem;
}

.btn-block {
    padding: 0.8rem;
    font-size: 1.1rem;
}

.footer-note {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    padding: 1.2rem 0;
    background-color: transparent;
}

.footer-note a {
    color: #888;
    text-decoration: none;
}

@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        box-shadow: none;
    }

    .auth-left,
    .auth-right {
        padding: 1.5rem;
        text-align: center;
        flex: unset;
    }

    .auth-left h1 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        white-space: normal;
    }

    .auth-left img {
        max-width: 80%;
    }

    .auth-left p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-top: 0.5rem;
    }

    .auth-right h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-control {
        height: 44px;
        font-size: 0.95rem;
    }

    .btn-block {
        padding: 0.6rem;
        font-size: 1rem;
    }

    .footer-note {
        font-size: 0.75rem;
        padding: 1rem 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
