/* ==========================================================================
   Authentication Stylesheet — Executive Split-Screen Government Portal Design
   ========================================================================== */

.auth-page-body {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.25), transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.2), transparent 45%),
                linear-gradient(145deg, #06152b 0%, #0c2345 50%, #08182f 100%);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

/* Central Split-Screen Wrapper */
.auth-split-wrapper {
    width: 100%;
    max-width: 1140px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    overflow: hidden;
    position: relative;
    animation: authSplitEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authSplitEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   LEFT HERO PANE (Government Branding & Pillars)
   ========================================================================== */
.auth-hero-pane {
    background: linear-gradient(150deg, #071932 0%, #0d274d 55%, #081a33 100%);
    color: #ffffff;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-hero-glow {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(50px);
}

.auth-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.auth-back-home-btn {
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.auth-back-home-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(-2px);
}

.auth-status-chip {
    font-size: 0.74rem;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.pulse-beacon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    margin: auto 0;
    padding: 10px 0;
}

.auth-emblem-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    margin-bottom: 14px;
}

.auth-dept-tag {
    font-size: 0.76rem;
    font-weight: 700;
    color: #93c5fd;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.auth-hero-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.auth-hero-title span {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-hero-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Feature List */
.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.auth-feature-item strong {
    font-size: 0.84rem;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.auth-feature-item p {
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.auth-hero-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    margin-top: 24px;
}

/* ==========================================================================
   RIGHT FORM PANE (Clean, Elevated Login Box)
   ========================================================================== */
.auth-form-pane {
    background: #ffffff;
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card-modern {
    width: 100%;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-icon-circle {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 10px;
}

.auth-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.auth-card-subtitle {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0;
}

/* Modern Role Switcher */
.role-switcher-modern {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 22px;
    border: 1px solid var(--border-color);
}

.role-tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.role-tab-btn.active {
    background: #ffffff;
    color: #2563eb;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Input Icon Group */
.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 1.1rem;
    pointer-events: none;
}

.form-control-modern {
    width: 100%;
    padding: 12px 44px 12px 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.92rem;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

.form-control-modern:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.15rem;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover {
    color: #0f172a;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.94rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
}

.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Demo Credentials Box */
.demo-cred-box {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.demo-cred-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.demo-pill-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-fill-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s ease;
}

.demo-fill-card:hover,
.demo-fill-card.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.demo-card-icon {
    font-size: 1.25rem;
}

.demo-card-info {
    flex: 1;
    min-width: 0;
}

.demo-card-role {
    font-weight: 700;
    font-size: 0.8rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-card-sub {
    font-size: 0.72rem;
    color: #64748b;
}

.demo-card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #93c5fd;
    white-space: nowrap;
}

.portal-switch-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.portal-switch-footer a {
    text-decoration: none;
    transition: color 0.15s ease;
}

.portal-switch-footer a:hover {
    text-decoration: underline;
}

.auth-card-footer {
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================= */
@media (max-width: 991px) {
    .auth-split-wrapper {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
    .auth-hero-pane {
        padding: 32px 24px;
    }
    .auth-hero-title {
        font-size: 1.35rem;
    }
    .auth-feature-list {
        display: none;
    }
    .auth-hero-footer {
        display: none;
    }
    .auth-form-pane {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .auth-page-body {
        padding: 8px;
    }
    .auth-split-wrapper {
        border-radius: 14px;
    }
    .auth-form-pane {
        padding: 24px 16px;
    }
    .demo-card-badge {
        display: none;
    }
}
