/* ======================================================
   AUTH PAGE STYLES (LOGIN, REGISTER, FORGOT, RESET)
   ====================================================== */

:root {
    --auth-bg: #f5f7fb;
    --auth-surface: #ffffff;
    --auth-primary: #2f435a;
    --auth-accent: #f7a600;
    --auth-accent-2: #f9b233;
    --auth-border: #d9dee6;
    --auth-muted: #5b6673;
}

body {
    background-color: var(--auth-bg);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 18px;
}

.auth-page-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-card {
    width: min(900px, 95vw);
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    background-color: var(--auth-surface);
    display: flex;
}

.login-section,
.register-section {
    flex: 1 1 50%;
    min-width: 0;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation-duration: 0.7s;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
}

.login-section {
    background-color: var(--auth-surface);
    color: var(--auth-primary);
    animation-name: slideInLeft;
}

.register-section {
    background: linear-gradient(135deg, var(--auth-accent-2), var(--auth-accent));
    color: #ffffff;
    text-align: center;
    animation-name: slideInRight;
}

.register-left {
    order: 1;
}

.register-right {
    order: 2;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-26px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(26px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.login-section h4 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 40px;
    color: var(--auth-primary);
}

.register-section h2 {
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 800;
    margin: 0 0 18px;
}

.register-section p {
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 420px;
    margin: 0 auto;
    opacity: 0.96;
}

.auth-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-logo {
    height: 56px;
    width: auto;
}

.form-control,
.input-group .btn {
    min-height: auto;
}

.form-control {
    border-radius: 10px;
    border-color: var(--auth-border);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control::placeholder {
    color: #6c757d;
}

.form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 0.2rem rgba(247, 166, 0, 0.22);
}

.input-group .btn.toggle-password {
    border-color: #8592a3;
    color: #6d7785;
    border-radius: 0 10px 10px 0;
    min-width: 52px;
}

.btn-login,
.btn-google,
.btn-register {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-login,
.btn-google {
    min-height: auto;
    background-color: var(--auth-primary);
    color: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--auth-primary);
    font-size: 1rem;
}

.btn-login:hover,
.btn-google:hover {
    background-color: #243548;
    border-color: #243548;
    color: #ffffff;
}

.btn-register {
    min-height: auto;
    border: 2px solid #ffffff;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.5rem 2rem;
    margin-top: 20px;
    background: transparent;
    font-size: 1rem;
}

.btn-register:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #df9600;
}

.btn-google i {
    margin-right: 8px;
}

.login-section .text-muted {
    color: var(--auth-muted) !important;
    font-size: 0.95rem;
}

.login-section .alert {
    font-size: 0.9rem;
}

@media (max-width: 1199.98px) {
    .auth-card {
        min-height: 500px;
    }

    .login-section,
    .register-section {
        padding: 40px 34px;
    }

    .login-section h4 {
        font-size: 1.4rem;
        margin-bottom: 28px;
    }

    .register-section h2 {
        font-size: 1.9rem;
    }

    .register-section p {
        font-size: 0.92rem;
    }
}

@media (max-width: 991.98px) {
    body {
        padding: 14px;
    }

    .auth-card {
        min-height: 460px;
        border-radius: 16px;
    }

    .login-section,
    .register-section {
        padding: 30px 22px;
    }

    .login-section h4 {
        font-size: 1.35rem;
    }

    .register-section h2 {
        font-size: 1.8rem;
    }

    .register-section p,
    .forgot-link,
    .form-control,
    .login-section .text-muted {
        font-size: 0.9rem;
    }

    .form-control,
    .input-group .btn,
    .btn-login,
    .btn-google,
    .btn-register {
        min-height: auto;
    }

    .auth-logo {
        height: 44px;
    }
}

@media (max-width: 767.98px) {
    body {
        align-items: flex-start;
        padding: 12px;
    }

    .auth-card {
        width: min(540px, 100%);
        min-height: 0;
        display: block;
    }

    .login-section,
    .register-section {
        width: 100%;
        padding: 24px 18px;
        animation: none;
    }

    .register-section {
        min-height: 220px;
    }

    .login-section h4 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .register-section h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .register-section p {
        font-size: 0.9rem;
    }

    .btn-register {
        margin-top: 18px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 10px;
    }

    .auth-card {
        border-radius: 14px;
    }

    .login-section,
    .register-section {
        padding: 20px 12px;
    }

    .auth-logos {
        gap: 10px;
    }

    .auth-logo {
        height: 34px;
    }

    .form-control,
    .login-section .text-muted,
    .forgot-link {
        font-size: 0.9rem;
    }

    .btn-login,
    .btn-google,
    .btn-register {
        font-size: 0.95rem;
    }
}
