/* ============================================================
   Auth Pages — Split-Screen Layout
   Shared by: login, forgot password, reset password
   ============================================================ */

/* ---- Override guest layout chrome — full-bleed split screen ---- */
body { background: #ffffff; }

.bg-image {
    background: #ffffff !important;
    background-image: none !important;
    min-height: 100vh;
}
.bg-image .bg-primary-dark-op { background: transparent !important; }
.bg-image > .row {
    min-height: 100vh;
    align-items: stretch !important;
    margin: 0 !important;
}
.bg-image .hero-static {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    align-items: stretch !important;
}
.bg-image .block.rounded-1rem {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    margin: 0 !important;
}
.bg-animation-vox { display: none !important; }
.after_login_user_name { display: none !important; }

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

/* ---- Left: Brand panel ---- */
.auth-split-left {
    flex: 1.1 1 0;
    background: linear-gradient(135deg, #0a2148 0%, #0d6efd 65%, #2b87ff 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}
.auth-split-left::before,
.auth-split-left::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.auth-split-left::before {
    top: -160px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.06);
}
.auth-split-left::after {
    bottom: -200px;
    left: -120px;
    width: 360px;
    height: 360px;
    background: rgba(255, 255, 255, 0.04);
}

.auth-brand-mark {
    position: relative;
    z-index: 2;
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.auth-carousel {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 540px;
}
.auth-carousel-slides {
    position: relative;
    min-height: 290px;
}
.auth-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}
.auth-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.auth-slide-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(6px);
}
.auth-slide-icon i {
    font-size: 1.55rem;
    color: #ffffff;
}
.auth-slide h2 {
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #ffffff;
}
.auth-slide p {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 460px;
}

.auth-carousel-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.auth-dot {
    width: 28px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.3s ease, width 0.3s ease;
}
.auth-dot.active {
    background: #ffffff;
    width: 44px;
}

.auth-foot-note {
    position: relative;
    z-index: 2;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---- Right: Form panel ---- */
.auth-split-right {
    flex: 0.9 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #ffffff;
}
.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}
.auth-logo {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
    margin: 0 0 2rem 0;
}
.auth-welcome-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #15233f;
    margin: 0 0 0.4rem 0;
}
.auth-welcome-subtitle {
    font-size: 0.93rem;
    color: #6c7a99;
    margin: 0 0 1.75rem 0;
}

/* ---- Inputs ---- */
.auth-form-wrapper .form-floating { margin-bottom: 0.9rem; }
.auth-form-wrapper .form-control {
    height: 56px;
    border-radius: 8px !important;
    border: 1.5px solid #e4e8f0 !important;
    background-color: #ffffff !important;
    padding: 1rem 0.75rem;
    font-size: 0.95rem;
    color: #15233f;
    box-shadow: none !important;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-form-wrapper .form-control[readonly] {
    background-color: #f7f9fc !important;
    color: #6c7a99;
}
.auth-form-wrapper .form-control:hover { border-color: #c7d2e3 !important; }
.auth-form-wrapper .form-control:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12) !important;
}
.auth-form-wrapper .form-floating > label {
    color: #8893a8;
    font-size: 0.95rem;
}
.auth-form-wrapper .form-floating > .form-control:focus ~ label,
.auth-form-wrapper .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #0d6efd;
    font-weight: 600;
}
.auth-form-wrapper .form-control.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff7f8 !important;
}
.auth-form-wrapper .invalid-feedback {
    font-size: 0.8rem;
    color: #dc3545;
    padding-left: 2px;
}

.error {
    color: #dc3545;
    font-size: 0.8rem;
    display: block;
    margin: -4px 0 4px 2px;
}

/* ---- Forgot Password row (login page) ---- */
.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: 0.4rem 0 1.25rem;
}
.auth-forgot-row a {
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}
.auth-forgot-row a:hover { text-decoration: underline; }

/* ---- Primary action button ---- */
.auth-login-btn,
.auth-primary-btn {
    width: 100%;
    height: 50px;
    background: #0d6efd !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 4px 14px -4px rgba(13, 110, 253, 0.45);
}
.auth-login-btn:hover,
.auth-login-btn:focus,
.auth-primary-btn:hover,
.auth-primary-btn:focus {
    background: #0b5ed7 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -4px rgba(13, 110, 253, 0.55);
}

/* ---- Back link (forgot password page) ---- */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #6c7a99;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-back-link:hover { color: #0d6efd; }

/* ---- Divider ---- */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #9aa6bd;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e4e8f0;
}
.auth-divider span { padding: 0 1rem; }

/* ---- Social Login (preserve original class names for JS) ---- */
.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border: 1.5px solid #e4e8f0;
    background: #ffffff;
    color: #15233f;
    font-weight: 600;
    font-size: 0.95rem;
    gap: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.social-login-btn:hover {
    border-color: #0d6efd;
    background-color: #f6faff;
    color: #0d6efd;
}
.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
/* Give every social button's label the same width so the icon+label group is
   identical across buttons — keeps the group centered while the icons align. */
.social-login-label {
    display: inline-block;
    width: 10.5rem;
    text-align: left;
}

.social-login-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}
.social-login-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: auth-spin 1s linear infinite;
}
@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* ---- Alerts ---- */
.auth-form-wrapper .alert {
    border-radius: 8px;
    border: none;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.auth-form-wrapper .alert-danger { background: #fff0f1; color: #b3253a; }
.auth-form-wrapper .alert-success { background: #e9f7ef; color: #1d6f42; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    /* .auth-split { flex-direction: column; } */
    .auth-split-left {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    .auth-carousel-slides { min-height: 180px; }
    .auth-slide h2 { font-size: 1.5rem; }
    .auth-slide p { font-size: 0.9rem; }
    .auth-foot-note { display: none; }
}

@media (max-width: 767.9px) {
    .auth-split-left {
        display: none;
    }

    .auth-split {
        display: inline-block !important;
    }
}

@media (max-width: 576px) {
    .auth-split-left { padding: 1.75rem 1.25rem; }
    .auth-split-right { padding: 2rem 1.25rem; }
    .auth-logo { width: 150px; margin-bottom: 1.5rem; }
    .auth-welcome-title { font-size: 1.35rem; }
    .auth-welcome-subtitle { font-size: 0.875rem; margin-bottom: 1.5rem; }
    .auth-slide-icon { width: 52px; height: 52px; margin-bottom: 1rem; }
    .auth-slide-icon i { font-size: 1.25rem; }
}
