:root {
    --scf-primary: #e62e04;
    --scf-primary-soft: rgba(230, 46, 4, 0.1);
    --scf-navy: #0b1f3a;
    --scf-navy-deep: #071526;
    --scf-slate: #1e3a5f;
    --scf-ink: #142033;
    --scf-muted: #6b7a90;
    --scf-line: #d7dee8;
    --scf-paper: #f4f7fb;
}

/* ========== Auth / Login (centered) ========== */
.scf-auth-body {
    min-height: 100vh;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--scf-navy-deep);
    font-family: "Source Sans 3", "Noto Sans SC", sans-serif;
    color: var(--scf-ink);
}

.scf-login-stage--centered {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px;
    overflow: hidden;
    box-sizing: border-box;
}

.scf-login-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1000px 520px at 18% 12%, rgba(230, 46, 4, 0.26), transparent 55%),
        radial-gradient(900px 480px at 88% 88%, rgba(46, 125, 180, 0.2), transparent 50%),
        linear-gradient(155deg, var(--scf-navy-deep) 0%, var(--scf-navy) 48%, var(--scf-slate) 100%);
}

.scf-login-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 40%, #000 15%, transparent 72%);
    opacity: 0.9;
    animation: scf-mesh-drift 18s linear infinite;
}

.scf-login-hero-grid {
    position: absolute;
    width: 520px;
    height: 520px;
    left: 50%;
    top: 45%;
    margin-left: -260px;
    margin-top: -260px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 48px rgba(255, 255, 255, 0.02),
        inset 0 0 0 96px rgba(255, 255, 255, 0.02);
    animation: scf-ring-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.scf-login-center {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    animation: scf-rise 0.7s ease both;
}

.scf-login-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.scf-login-card-brand {
    padding: 18px 24px 14px;
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.96) 0%, rgba(30, 58, 95, 0.95) 100%);
    color: #fff;
    text-align: center;
}

.scf-login-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 24px;
    padding: 0 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #ffd7cc;
    background: rgba(230, 46, 4, 0.18);
}

.scf-login-hero-brand {
    margin: 0 0 6px;
    font-family: "Noto Serif SC", "Source Sans 3", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.scf-login-hero-lead {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.scf-login-card-body {
    padding: 18px 24px 20px;
}

.scf-login-title {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--scf-navy);
    letter-spacing: 0.01em;
    text-align: center;
}

.scf-login-sub {
    margin: 0 0 14px;
    color: var(--scf-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

.scf-login-form .form-group {
    margin-bottom: 0.75rem;
}

.scf-login-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
}

.scf-login-form .scf-input,
.scf-login-form .form-control {
    height: 40px;
    border: 1px solid var(--scf-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scf-login-form .scf-input:focus,
.scf-login-form .form-control:focus {
    border-color: rgba(230, 46, 4, 0.55);
    box-shadow: 0 0 0 3px rgba(230, 46, 4, 0.12);
}

.scf-login-remember {
    margin-bottom: 0.55rem !important;
}

.scf-login-remember .aiz-checkbox span:first-of-type {
    color: var(--scf-muted);
    font-size: 0.9rem;
}

.scf-captcha-wrap .form-control {
    height: 40px;
}

.scf-captcha-wrap .captcha-img {
    height: 40px !important;
    border-radius: 8px !important;
    border-color: var(--scf-line) !important;
}

.scf-login-btn {
    margin-top: 4px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #f03a12 0%, #c42100 100%);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.scf-login-btn:hover,
.scf-login-btn:focus {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #fff !important;
}

.scf-login-btn:active {
    transform: translateY(0);
}

.scf-login-home {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--scf-line);
    text-align: center;
}

.scf-login-home-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--scf-muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.scf-login-home-link:hover,
.scf-login-home-link:focus {
    color: #e62e04;
    text-decoration: none;
}

@keyframes scf-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scf-mesh-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 48px 48px, 48px 48px; }
}

@keyframes scf-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.65; }
    50% { transform: scale(1.04); opacity: 1; }
}

@media (max-height: 760px) {
    .scf-login-card-brand {
        padding: 14px 22px 10px;
    }

    .scf-login-hero-lead {
        display: none;
    }

    .scf-login-card-body {
        padding: 14px 22px 16px;
    }

    .scf-login-sub {
        margin-bottom: 10px;
    }

    .scf-login-form .form-group {
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 575.98px) {
    .scf-login-stage--centered {
        padding: 12px;
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .scf-login-card-brand,
    .scf-login-card-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .scf-login-hero-brand {
        font-size: 1.25rem;
    }
}

/* ========== Portal shell ========== */
.scf-portal-body .scf-side-header {
    background: var(--scf-primary);
    padding: 28px 16px 22px;
}

.scf-portal-body .aiz-side-nav-link.active,
.scf-portal-body .aiz-side-nav-link:hover {
    background: var(--scf-primary-soft);
    color: var(--scf-primary);
}

.scf-portal-body .aiz-side-nav-link.active .aiz-side-nav-icon,
.scf-portal-body .aiz-side-nav-link:hover .aiz-side-nav-icon {
    color: var(--scf-primary);
}

.scf-stat-card {
    border: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
