/* ============================================================
   SIMAKREDITASI — Design System 2026
   Modern: Aurora BG · Glassmorphism · Neon Glow · Micro-animations
   ============================================================ */

/* ============================================================
   CSS Variables / Design Tokens
   ============================================================ */
:root {
    /* Background */
    --bg-base: #03050f;
    --bg-surface: #080d1c;
    --bg-elevated: #0d1528;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-act: rgba(99, 102, 241, 0.5);

    /* Primary — Indigo */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4338ca;
    --primary-glow: rgba(99, 102, 241, 0.35);

    /* Accent — Cyan */
    --accent: #06b6d4;
    --accent-light: #67e8f9;
    --accent-glow: rgba(6, 182, 212, 0.3);

    /* Highlights */
    --purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.3);
    --pink: #ec4899;
    --green: #10b981;
    --amber: #f59e0b;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --text-subtle: #334155;

    /* Status */
    --success: #10b981;
    --error: #f43f5e;
    --warning: #f59e0b;

    /* Misc */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

[hidden] {
    display: none !important;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/bacgroundlogin12.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% auto;
    animation: slowPan 30s ease-in-out infinite alternate;
}

.login-page::after {
    display: none;
}

.login-page .auth-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    position: relative;
    z-index: 2;
}

.login-page .auth-container {
    width: 95%;
    max-width: 1200px;
    min-height: auto;
    height: clamp(600px, 85vh, 760px);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), 0 4px 24px rgba(0, 0, 0, 0.1);
    background: transparent;
    overflow: hidden;
    margin: auto;
    z-index: 5;
}

.login-page .left-panel {
    padding: 50px !important;
}

.login-page .login-logo-ring {
    width: clamp(80px, 9vw, 104px);
    height: clamp(52px, 5.8vw, 68px);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.login-page .login-logo-wrap {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.login-page .right-panel {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
    padding: 50px 60px !important;
}

.login-page .auth-card {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
    max-width: 460px !important;
    width: 100%;
}

.login-page .login-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
    display: block;
}

.login-page .login-card-header {
    margin-bottom: 32px;
}

.login-page .login-title {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-page .login-subtitle {
    font-size: 15px;
    color: #64748b;
    font-weight: 400;
}

.login-page .login-form .form-group {
    margin-bottom: 24px;
}

.login-page .auth-card input:-webkit-autofill,
.login-page .auth-card input:-webkit-autofill:hover,
.login-page .auth-card input:-webkit-autofill:focus,
.login-page .auth-card input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 50px #ffffff inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login-page .auth-card input.form-control {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.login-page .auth-card input.form-control:focus {
    border-color: #1e3a8a !important;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1) !important;
}

.login-page .auth-card .form-label {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    text-transform: capitalize;
}

.login-page .login-form .form-extras {
    margin-bottom: 32px;
}

.login-page .password-input {
    padding-right: 48px !important;
    letter-spacing: 2px;
}

.login-page .remember-label {
    gap: 8px;
    color: #475569;
    font-size: 14.5px;
}

.login-page .remember-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    accent-color: #1e3a8a;
    cursor: pointer;
}

.login-page .remember-checkbox:focus-visible {
    outline: 3px solid rgba(30, 58, 138, 0.18);
    outline-offset: 2px;
}

.login-page .login-submit {
    border-radius: 14px;
    min-height: 56px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
    text-transform: uppercase;
}

.login-page .login-help-text {
    margin-top: 28px;
    text-align: center;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
}

.login-page .login-copyright {
    position: fixed;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    opacity: 0.75;
    z-index: 10;
}

.login-page .login-copyright-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.login-page .login-copyright-link:hover,
.login-page .login-copyright-link:focus {
    text-decoration: underline;
}

@keyframes slowPan {
    0% {
        background-position: 50% 50%;
    }

    100% {
        background-position: 60% 60%;
    }
}

/* ============================================================
   Aurora Background
   ============================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 110%, rgba(6, 182, 212, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 60% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 70% 60% at -10% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: aurora 12s ease-in-out infinite alternate;
}

@keyframes aurora {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05) rotate(0.5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* ============================================================
   Floating Orbs
   ============================================================ */
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.12;
    animation: floatOrb var(--dur, 18s) ease-in-out infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -150px;
    left: -100px;
    --dur: 15s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -100px;
    right: -80px;
    --dur: 20s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    top: 40%;
    right: 20%;
    --dur: 25s;
    opacity: 0.08;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    100% {
        transform: translate(10px, -15px) scale(1.02);
    }
}

/* ============================================================
   Main Layout — Split Screen
   ============================================================ */
.auth-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ============================================================
   LEFT PANEL — Brand / Visual
   ============================================================ */
.left-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    overflow: hidden;
    /* Custom Background Image */
    background: url('../img/bacgroundlogin1.png') center center / cover no-repeat;
}

/* Overlay transparan tipis agar gambar tetap cerah namun teks tetap terbaca */
.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Pastikan konten di atas overlay */
.left-panel>* {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Tambahan bayangan agar teks putih lebih kontras di BG terang */
}

/* Logo container - transparent background */
.logo-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ring::before,
.logo-ring::after {
    display: none;
}

.logo-icon-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    border: none;
    font-size: 38px;
    backdrop-filter: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Brand title */
.brand-title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 10px;
}

.brand-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.65;
    max-width: 380px;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Feature Cards */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 380px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--transition);
    cursor: default;
}

.feature-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(6px);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.08);
}

.feature-badge {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
}

.feature-badge.indigo {
    background: rgba(99, 102, 241, 0.15);
}

.feature-badge.cyan {
    background: rgba(6, 182, 212, 0.15);
}

.feature-badge.purple {
    background: rgba(168, 85, 247, 0.15);
}

.feature-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* Scrolling marquee */
.marquee-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(99, 102, 241, 0.08);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 0;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-track span {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0 32px;
    opacity: 0.9;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================================
   RIGHT PANEL — Form
   ============================================================ */
.right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    position: relative;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    overflow-y: auto;
}

/* ── Override teks agar terbaca di background putih ── */
.right-panel .card-header h2 {
    color: #1e293b;
}

.right-panel .card-header p {
    color: #64748b;
}

.right-panel .card-header .eyebrow {
    color: #4f46e5;
    background: rgba(99, 102, 241, .08);
    border-color: rgba(99, 102, 241, .2);
}

.right-panel .form-label {
    color: #475569;
}

.right-panel .form-control {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

.right-panel .form-control::placeholder {
    color: #94a3b8;
}

.right-panel .form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.right-panel .form-control.valid {
    border-color: rgba(16, 185, 129, .5);
    background: #f0fdf4;
}

.right-panel .form-control.invalid {
    border-color: rgba(244, 63, 94, .5);
    background: #fff1f2;
}

.right-panel .input-wrapper .input-action {
    color: #64748b;
}

.right-panel .input-wrapper .input-action:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.right-panel .remember-label {
    color: #475569;
}

.right-panel .auth-divider span {
    color: #94a3b8;
    background: #fff;
}

.right-panel .auth-switch a {
    color: var(--primary);
}

.right-panel .section-label {
    color: #64748b;
}

.right-panel .terms-row label {
    color: #475569;
}

.right-panel .terms-row a {
    color: var(--primary);
}

.right-panel .summary-key {
    color: #64748b;
}

.right-panel .summary-val {
    color: #1e293b;
}

.right-panel .summary-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.right-panel .alert-banner.success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.right-panel .alert-banner.error {
    background: #fff1f2;
    border-color: #fda4af;
    color: #9f1239;
}

.right-panel .field-error {
    color: #b91c1c;
}

/* ============================================================
   Auth Card
   ============================================================ */
.auth-card {
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.6s var(--transition) both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card header */
.card-header {
    margin-bottom: 36px;
}

.card-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 12px;
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
}

.card-header h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 10px;
}

.card-header p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================================
   Alert Banners
   ============================================================ */
.alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
    animation: fadeInDown 0.4s var(--transition);
    transition: opacity 0.3s ease;
}

.alert-banner.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.alert-banner.error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fda4af;
}

.alert-banner .alert-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-banner[style*="display:none"] {
    display: none !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Form Elements
   ============================================================ */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.form-group:focus-within .form-label {
    color: var(--primary-light);
}

/* Input base */
.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.25s var(--transition);
    outline: none;
    -webkit-appearance: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-control:focus {
    background: rgba(99, 102, 241, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), 0 0 20px rgba(99, 102, 241, 0.08);
}

.form-control:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.055);
}

.form-control.valid {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.04);
}

.form-control.invalid {
    border-color: rgba(244, 63, 94, 0.5);
    background: rgba(244, 63, 94, 0.04);
}

/* Select */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    appearance: none;
}

select.form-control option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* Input with icon right */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .form-control {
    padding-right: 48px;
}

.input-wrapper .input-action {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.input-wrapper .input-action:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
}

.input-wrapper .input-action:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid rgba(30, 58, 138, 0.18);
    outline-offset: 3px;
}

/* Field error text */
.field-error {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #fda4af;
    font-weight: 500;
    margin-top: 6px;
    padding-left: 2px;
}

.field-error.show {
    display: flex;
    animation: fadeInDown 0.25s;
}

.field-error::before {
    content: '⚠';
    font-size: 11px;
}

/* ============================================================
   Form Row (2 column)
   ============================================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ============================================================
   Password Strength
   ============================================================ */
.strength-meter {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-bar-seg {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.4s var(--transition);
}

.strength-bar-seg.active-weak {
    background: #f43f5e;
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.5);
}

.strength-bar-seg.active-medium {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.strength-bar-seg.active-strong {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.strength-label {
    font-size: 11px;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
    color: var(--text-muted);
    transition: color 0.3s;
}

.strength-label.weak {
    color: #f43f5e;
}

.strength-label.medium {
    color: #f59e0b;
}

.strength-label.strong {
    color: #10b981;
}

/* ============================================================
   Remember Me & Extras
   ============================================================ */
.form-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
    width: 100%;
    padding: 15px 24px;
    background: #1E3C97;
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--transition);
    box-shadow: 0 0 30px rgba(30, 60, 151, 0.3), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s;
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(30, 60, 151, 0.5), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 0 20px rgba(30, 60, 151, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary.loading {
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-primary[aria-busy="true"] {
    pointer-events: none;
}

.btn-secondary {
    width: 100%;
    padding: 15px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text-primary);
}

.btn-group {
    display: flex;
    gap: 12px;
}

/* ============================================================
   Divider
   ============================================================ */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.auth-divider span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Switch link */
.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-switch a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: color 0.2s;
}

.auth-switch a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 100%;
    height: 1px;
    background: var(--primary-light);
    transition: right 0.3s var(--transition);
}

.auth-switch a:hover::after {
    right: 0;
}

.auth-switch a:hover {
    color: var(--accent-light);
}

/* ============================================================
   Step Indicator
   ============================================================ */
.steps-nav {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s var(--transition);
}

.step-label-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: color 0.3s;
}

.step-node.active .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 0 20px rgba(99, 102, 241, 0.3);
}

.step-node.active .step-label-text {
    color: var(--primary-light);
}

.step-node.done .step-dot {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.step-node.done .step-label-text {
    color: #10b981;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 8px;
    margin-bottom: 22px;
    border-radius: 1px;
    transition: background 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

.step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1px;
    transition: width 0.5s var(--transition);
}

.step-line.active::after {
    width: 100%;
}

/* Step form sections */
.step-section {
    display: none;
}

.step-section.visible {
    display: block;
    animation: fadeStep 0.4s var(--transition);
}

@keyframes fadeStep {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section label */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   Summary Box (Step 3)
   ============================================================ */
.summary-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-key {
    color: var(--text-muted);
    font-weight: 500;
}

.summary-val {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-val.highlight {
    color: var(--primary-light);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
}

/* Terms */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 24px;
    cursor: pointer;
}

.terms-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
    margin-top: 1px;
}

.terms-row label {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    cursor: pointer;
}

.terms-row label a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
}

.terms-row label a:hover {
    text-decoration: underline;
}

/* ============================================================
   Toast Notifications
   ============================================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    min-width: 300px;
    max-width: 380px;
    pointer-events: all;
    backdrop-filter: blur(16px);
    animation: toastIn 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    animation: toastTimer var(--dur, 3s) linear forwards;
    transform-origin: left;
}

.toast.success {
    background: rgba(30, 60, 151, 0.95);
    /* #1E3C97 with opacity */
    border: 1px solid rgba(30, 60, 151, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.toast.success .toast-title,
.toast.success .toast-message {
    color: #ffffff;
}

.toast.success::after {
    background: #ffffff;
}

.toast.error {
    background: rgba(244, 63, 94, 0.95);
    border: 1px solid rgba(244, 63, 94, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.toast.error .toast-title,
.toast.error .toast-message {
    color: #ffffff;
}

.toast.error::after {
    background: #ffffff;
}

.toast.warning {
    background: rgba(245, 158, 11, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.toast.warning .toast-title,
.toast.warning .toast-message {
    color: #ffffff;
}

.toast.warning::after {
    background: #ffffff;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-body .toast-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 2px;
}

.toast-body .toast-message {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.toast.hide {
    animation: toastOut 0.3s var(--transition) forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
}

@keyframes toastTimer {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body::before,
    .orb,
    .marquee-track,
    .auth-card,
    .toast,
    .btn-primary::before,
    .feature-card {
        animation: none !important;
        transition: none !important;
    }

    .login-page {
        animation: none !important;
    }
}

/* ============================================================
   Responsive — Tablet / Mobile
   ============================================================ */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .left-panel {
        padding: 48px 36px 60px;
        min-height: auto;
    }

    .right-panel {
        padding: 48px 32px;
        border-left: none;
        border-top: 1px solid var(--glass-border);
    }

    .marquee-strip {
        display: none;
    }
}

@media (max-width: 480px) {
    .left-panel {
        padding: 36px 24px 48px;
    }

    .right-panel {
        padding: 36px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .brand-title {
        font-size: 26px;
    }

    .card-header h2 {
        font-size: 26px;
    }

    .toast-container {
        right: 16px;
        left: 16px;
        top: 16px;
    }

    .toast {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        background-size: cover;
        background-position: center top;
        animation-duration: 40s;
    }

    .login-page .auth-page {
        flex: 0 0 auto;
        width: 100%;
        min-height: auto;
        align-items: stretch;
        padding: 16px 16px 28px;
    }

    .login-page .auth-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: hidden;
        width: 100%;
        border-radius: 22px;
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
    }

    .login-page .left-panel {
        order: 1;
        min-height: 0;
        margin: 0 10px;
        padding: 24px 18px 20px !important;
        justify-content: flex-start;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .login-page .login-logo-ring {
        width: clamp(66px, 20vw, 82px);
        height: clamp(42px, 12vw, 54px);
        margin-bottom: 12px;
    }

    .login-page .right-panel {
        order: 2;
        padding: 14px 22px 24px !important;
        border-left: none !important;
        border-top: none !important;
        border-bottom: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        position: relative;
    }

    .login-page .right-panel::before {
        content: "";
        position: absolute;
        top: 0;
        left: 34px;
        right: 34px;
        height: 14px;
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
        background: linear-gradient(180deg, rgba(5, 8, 18, 0.56) 0%, rgba(5, 8, 18, 0.14) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        opacity: 0.92;
        pointer-events: none;
        z-index: 0;
    }

    .login-page .auth-card {
        max-width: none !important;
        position: relative;
        z-index: 1;
        isolation: isolate;
        overflow: hidden;
        padding: 22px 18px 18px !important;
        border-radius: 24px !important;
        border: 1px solid rgba(255, 255, 255, 0.48) !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.62) 100%) !important;
        box-shadow:
            0 18px 38px rgba(15, 23, 42, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
        backdrop-filter: blur(20px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    }

    .login-page .auth-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.82) 0%, transparent 38%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 42%, rgba(59, 130, 246, 0.10) 100%);
        pointer-events: none;
    }

    .login-page .login-card-header {
        margin-bottom: 24px;
    }

    .login-page .login-title {
        font-size: 28px;
        line-height: 1.1;
    }

    .login-page .login-subtitle,
    .login-page .brand-subtitle {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .login-page .brand-title {
        font-size: clamp(22px, 6.4vw, 28px);
        line-height: 1.08;
        margin-bottom: 8px;
    }

    .login-page .brand-subtitle,
    .login-page .features-grid {
        max-width: none;
    }

    .login-page .features-grid {
        gap: 10px;
    }

    .login-page .feature-card {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 15px;
    }

    .login-page .feature-text h4 {
        font-size: 12px;
    }

    .login-page .feature-text p {
        font-size: 11px;
        line-height: 1.5;
    }

    .login-page .login-form .form-group {
        margin-bottom: 18px;
    }

    .login-page .auth-card input.form-control {
        background: rgba(255, 255, 255, 0.55) !important;
        border-color: rgba(148, 163, 184, 0.24) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    }

    .login-page .auth-card input.form-control:focus {
        background: rgba(255, 255, 255, 0.72) !important;
        border-color: rgba(30, 58, 138, 0.48) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.82),
            0 0 0 4px rgba(30, 58, 138, 0.10) !important;
    }

    .login-page .input-wrapper .input-action {
        background: rgba(255, 255, 255, 0.22);
        border-radius: 10px;
    }

    .login-page .remember-label,
    .login-page .login-help-text,
    .login-page .login-subtitle {
        color: #475569;
    }

    .login-page .login-form .form-extras {
        margin-bottom: 22px;
    }

    .login-page .login-submit {
        min-height: 52px;
        font-size: 15px;
    }

    .login-page .login-help-text {
        margin-top: 20px;
        font-size: 13px;
    }

    .login-page .login-copyright {
        position: static;
        width: 100%;
        padding: 12px 18px 22px;
        font-size: 11px;
        line-height: 1.5;
        opacity: 0.82;
        text-align: center;
    }

    .login-page .login-copyright-link {
        display: block;
    }
}

@media (max-width: 480px) {
    .login-page .auth-page {
        padding: 10px 10px 20px;
    }

    .login-page .auth-container {
        width: 100%;
        border-radius: 18px;
    }

    .login-page .left-panel,
    .login-page .right-panel {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .login-page .left-panel {
        margin: 0 8px;
        padding-top: 20px !important;
        padding-bottom: 18px !important;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .login-page .right-panel {
        padding-top: 12px !important;
    }

    .login-page .right-panel::before {
        left: 28px;
        right: 28px;
        height: 12px;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .login-page .login-title {
        font-size: 24px;
    }

    .login-page .auth-card input.form-control {
        height: 48px;
        font-size: 14px;
    }

    .login-page .remember-label {
        font-size: 13.5px;
    }

    .login-page .login-copyright {
        padding: 10px 14px 18px;
        font-size: 10px;
    }
}
