/* ===== AUTH PAGES - Login, Register, Password Reset ===== */

body.gray-bg.login-page-admin {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: #fff;
}

body.gray-bg.login-page-admin > .wrapper {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    margin: 0;
}

body.gray-bg.login-page-admin > .wrapper > .row {
    margin: 0;
    display: flex;
    height: 100vh;
    width: 100%;
}

body.gray-bg.login-page-admin > .wrapper > .row > .col-md-4:first-child,
body.gray-bg.login-page-admin > .wrapper > .row > .col-md-4:last-child {
    display: none;
}

body.gray-bg.login-page-admin > .wrapper > .row > .card {
    width: 100%;
    max-width: 100%;
    flex: 1;
    margin: 0;
    padding: 0 !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
}

body.gray-bg.login-page-admin > .wrapper > .row > .card > img,
body.gray-bg.login-page-admin > .wrapper > .row > .card > div:last-child {
    display: none;
}

/* Split-screen layout */
.auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 2rem;
}

.auth-form-panel .auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 0.3rem;
    text-align: left;
}

.auth-card .subtitle {
    color: #676a6c;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: left;
}

.auth-card .back-link {
    color: #676a6c;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.auth-card .back-link:hover {
    color: #002c70;
}

/* Form groups */
.auth-form-group {
    margin-bottom: 1.1rem;
    text-align: left;
}

.auth-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2b2b2b;
    margin-bottom: 0.3rem;
}

.auth-form-group .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form-group .input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e4ed;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    outline: none;
    color: #2b2b2b;
    font-family: 'Poppins', sans-serif;
    height: auto;
    box-shadow: none;
    box-sizing: border-box;
}

.auth-form-group .input-wrapper input:focus {
    border-color: #002c70;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 44, 112, 0.08);
}

.auth-form-group .input-wrapper input.is-invalid,
.auth-form-group .input-wrapper input.error {
    border-color: #dc3545 !important;
}

.auth-form-group .toggle-password {
    position: absolute;
    right: 14px;
    cursor: pointer;
    color: #9a9fa4;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.auth-form-group .toggle-password:hover {
    color: #2b2b2b;
}

.auth-form-group .forgot-link {
    text-align: right;
    margin-top: 0.3rem;
}

.auth-form-group .forgot-link a {
    font-size: 0.8rem;
    color: #676a6c;
    text-decoration: none;
}

.auth-form-group .forgot-link a:hover {
    color: #002c70;
}

.auth-form-group small.text-danger,
.auth-form-group .invalid-feedback {
    display: block;
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* Buttons */
.btn-auth {
    width: 100%;
    padding: 0.8rem;
    background: #002c70;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-auth:hover {
    background: #001741;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 44, 112, 0.25);
}

.btn-google {
    width: 100%;
    padding: 0.8rem;
    background: #fff;
    border: 2px solid #e1e4ed;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.btn-google:hover {
    border-color: #002c70;
    background: #f8f9fa;
    transform: translateY(-1px);
    color: #2b2b2b;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-auth-link {
    background: none;
    border: none;
    color: #002c70;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    padding: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-auth-link:hover {
    color: #001741;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.2rem 0;
    color: #9a9fa4;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e4ed;
}

/* Alert */
.auth-alert {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    list-style: none;
    text-align: left;
}

.auth-alert.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.auth-alert li {
    list-style: none;
}

/* Auth link (bottom) */
.auth-link {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: #676a6c;
}

.auth-link a {
    color: #002c70;
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    color: #001741;
}

/* Brand Panel (right side) */
.auth-brand-panel {
    flex: 1;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border-left: 1px solid #e8ecf1;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0, 44, 112, 0.03);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(0, 44, 112, 0.03);
    bottom: -40px;
    left: -40px;
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #2b2b2b;
}

.auth-brand-content .brand-logo {
    margin-bottom: 2rem;
}

.auth-brand-content .brand-logo img {
    max-height: 148px;
}

.auth-brand-content .brand-illustration {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.auth-brand-content .brand-illustration svg {
    width: 220px;
    height: 220px;
}

.auth-brand-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #1a1a2e;
}

.auth-brand-content p {
    font-size: 0.9rem;
    color: #676a6c;
    max-width: 300px;
    line-height: 1.6;
    margin: 0 auto;
}

.auth-brand-content .brand-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2rem;
    text-align: left;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.auth-brand-content .brand-features .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #4a4a5a;
}

.auth-brand-content .brand-features .feature-item i {
    color: #002c70;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-split {
        flex-direction: column-reverse;
    }

    .auth-brand-panel {
        padding: 2rem 1.5rem;
        min-height: auto;
        border-left: none;
        border-top: 1px solid #e8ecf1;
    }

    .auth-brand-content .brand-illustration svg {
        width: 140px;
        height: 140px;
    }

    .auth-brand-content h3 {
        font-size: 1.1rem;
    }

    .auth-brand-content .brand-features {
        display: none;
    }

    .auth-form-panel {
        padding: 1.5rem;
    }

    .auth-card h2 {
        font-size: 1.4rem;
    }
}
