/* ============================================================
   SIMAPAN Login Page v3.0 — Modern Split-Screen
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
    /* Brand */
    --primary:         #2563eb;
    --primary-dark:    #1d4ed8;
    --primary-light:   #3b82f6;
    --accent:          #7c3aed;
    --success:         #059669;
    --danger:          #dc2626;
    --warning:         #d97706;

    /* Light mode surfaces */
    --bg-page:         #f8faff;
    --bg-card:         #ffffff;
    --bg-input:        #f1f5f9;
    --bg-input-focus:  #ffffff;
    --border:          #e2e8f0;
    --border-focus:    var(--primary);

    /* Text */
    --text-primary:    #0f172a;
    --text-secondary:  #475569;
    --text-muted:      #94a3b8;
    --text-inverse:    #ffffff;

    /* Misc */
    --radius-sm:       10px;
    --radius-md:       14px;
    --radius-lg:       20px;
    --radius-xl:       28px;
    --shadow-sm:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:       0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:       0 20px 48px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
    --shadow-glow:     0 0 0 4px rgba(37,99,235,.18);
    --transition:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode overrides */
[data-theme="dark"] {
    --bg-page:         #0b1120;
    --bg-card:         #111827;
    --bg-input:        #1e293b;
    --bg-input-focus:  #243044;
    --border:          #1e2d45;
    --border-focus:    var(--primary-light);

    --text-primary:    #f1f5f9;
    --text-secondary:  #94a3b8;
    --text-muted:      #475569;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-page);
    color: var(--text-primary);
    overflow: hidden;
}

/* ============================================================
   Split Layout
   ============================================================ */
.split-layout {
    display: flex;
 /*   flex-direction: row-reverse; */
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ============================================================
   LEFT PANEL — Branding / Hero
   ============================================================ */
.panel-left {
    position: relative;
    flex: 0 0 66%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    background: #0d1b3e;

    /* Campus hero photo */
    background-image: url('../../img/login-bg/unsoed-campus.jpg');
    background-size: cover;
    background-position: center 30%;
}

/* Multi-layer overlay for depth and readability */
.panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Dark gradient from bottom for text */
        linear-gradient(
            to top,
            rgba(5, 15, 40, 0.97) 0%,
            rgba(5, 15, 40, 0.75) 40%,
            rgba(5, 15, 40, 0.25) 70%,
            rgba(5, 15, 40, 0.05) 100%
        ),
        /* Subtle blue tint */
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.2) 0%,
            rgba(124, 58, 237, 0.1) 100%
        );
    z-index: 1;
}

/* Animated mesh canvas on top of photo */
.mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.55;
}

/* Panel orbs for extra depth */
.panel-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 2;
    pointer-events: none;
}
.panel-orb-1 {
    width: 320px; height: 320px;
    background: rgba(37, 99, 235, 0.3);
    top: -80px; left: -80px;
    animation: orbFloat 18s infinite alternate ease-in-out;
}
.panel-orb-2 {
    width: 260px; height: 260px;
    background: rgba(124, 58, 237, 0.25);
    bottom: 120px; right: -60px;
    animation: orbFloat 22s infinite alternate-reverse ease-in-out;
}
.panel-orb-3 {
    width: 180px; height: 180px;
    background: rgba(59, 130, 246, 0.2);
    top: 40%; left: 20%;
    animation: orbFloat 15s infinite alternate ease-in-out;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.12); }
}

/* Panel content positioned above overlays */
.panel-left-content {
    position: relative;
    z-index: 10;
    padding: 3rem 3rem 3.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Logo row */
.brand-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.brand-logo {
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4)) brightness(1.05);
    flex-shrink: 0;
}
.brand-logo-ministry { width: 48px; height: 48px; object-fit: contain; }
.brand-logo-unsoed   { width: 52px; height: 52px; object-fit: contain; }

.brand-logo-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.3);
}

/* System name */
.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(99, 165, 255, 0.4);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    width: fit-content;
    margin-bottom: 0.25rem;
}

.panel-title {
    font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 60%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0%   { filter: brightness(1); }
    100% { filter: brightness(1.12); }
}

.panel-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(203, 213, 225, 0.9);
    line-height: 1.6;
    margin-top: 0.25rem;
}

/* Chips */
.panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.panel-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.panel-chip i { color: #93c5fd; font-size: 0.7rem; }

.panel-chip:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(147, 197, 253, 0.4);
    transform: translateY(-1px);
}

/* Footer */
.panel-footer-text {
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.6);
    margin-top: 0.5rem;
}

.panel-hero {
    position: absolute;
    top: 3.05rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    max-width: 96%;
    text-align: center;
    pointer-events: none;
}

.panel-hero-title {
    font-size: clamp(1.7rem, 3.1vw, 2.67rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
    text-shadow:
        0 10px 26px rgba(0, 0, 0, 0.45),
        0 2px 0 rgba(0, 0, 0, 0.25);
}

.panel-hero-subtitle {
    margin-top: 0.35rem;
    font-size: clamp(0.9rem, 1.4vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(226, 232, 240, 0.92);
    -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.45);
    text-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
}

/* Tagline — motto UNSOED (top-right of left panel) */
.panel-tagline {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    text-align: right;
    padding: 0.85rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.panel-tagline strong {
    display: block;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.12;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(191,219,254,0.96) 55%, rgba(129,140,248,0.96) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-tagline em {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.98rem;
    font-style: normal;
    color: rgba(191, 219, 254, 0.9);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================
   RIGHT PANEL — Form
   ============================================================ */
.panel-right {
    flex: 1;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    position: relative;
    padding: 2rem 3rem 2rem 5rem;
    transition: background 0.3s ease;
}

/* Subtle top accent stripe */
.panel-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

/* Theme toggle */
.btn-theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 20;
}

.btn-theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(15deg) scale(1.08);
    box-shadow: var(--shadow-glow);
}

/* Form panel — the centered card */
.form-panel {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Form Header */
.form-header {
    margin-bottom: 2rem;
}

/* Logo + teks sejajar horizontal */
.form-header-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.form-logo-inline {
    width: 52px;
    height: 52px;
    min-width: 52px;
    max-width: 52px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
    transition: transform 0.3s ease;
}

.form-logo-inline:hover {
    transform: scale(1.06);
}

.form-header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Dual logos row */
.form-header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 0 auto 1.5rem;
}

.form-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
}

.form-logo:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.22));
}

.form-logo-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--border),
        transparent
    );
    flex-shrink: 0;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    text-align: left;
}

.form-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    text-align: left;
}

/* ============================================================
   Form Fields
   ============================================================ */
.field-group {
    margin-bottom: 1.1rem;
}

.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.field-label-row .field-label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Input wrapper */
.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    z-index: 2;
    transition: color 0.2s ease;
    pointer-events: none;
}

.field-input {
    width: 100%;
    padding: 0.72rem 1rem 0.72rem 2.7rem;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.field-input.is-invalid {
    border-color: rgba(220, 38, 38, 0.65);
    background: rgba(220, 38, 38, 0.05);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.field-wrap.is-invalid .field-icon,
.field-input.is-invalid:focus ~ .field-icon,
.field-wrap.is-invalid:focus-within .field-icon {
    color: var(--danger);
}

.field-error {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--danger);
}

.field-error.show { display: block; }

.field-input::placeholder { color: var(--text-muted); font-weight: 400; }

.field-input:focus {
    background: var(--bg-input-focus);
    border-color: var(--border-focus);
    box-shadow: var(--shadow-glow);
}

.field-input:focus ~ .field-icon,
.field-wrap:focus-within .field-icon { color: var(--primary); }

/* Select arrow */
.field-select {
    padding-right: 2.5rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 14px 11px;
}

.field-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Password toggle button */
.field-toggle-btn {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 6px;
    transition: var(--transition);
    z-index: 3;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.field-toggle-btn:hover { color: var(--primary); }

/* Input with password toggle needs right padding */
.field-input.has-toggle { padding-right: 2.8rem; }

/* Two-column row */
.field-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.field-row-2 .field-group { margin-bottom: 0; }

/* ============================================================
   Login Button
   ============================================================ */
.btn-login {
    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3), 0 2px 6px rgba(124, 58, 237, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect */
.btn-login::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before { left: 100%; }

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 4px 10px rgba(124, 58, 237, 0.3);
}

.btn-login:active { transform: translateY(0); box-shadow: none; }

.btn-login:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.btn-login-success {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}

/* ============================================================
   Form Alert
   ============================================================ */
.form-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    animation: alertIn 0.3s ease;
    border: 1px solid transparent;
}

.form-alert-success {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.25);
    color: #065f46;
}

[data-theme="dark"] .form-alert-success {
    background: rgba(5, 150, 105, 0.15);
    color: #6ee7b7;
}

.form-alert-error {
    background: rgba(220, 38, 38, 0.09);
    border-color: rgba(220, 38, 38, 0.22);
    color: #991b1b;
}

[data-theme="dark"] .form-alert-error {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}

.form-alert-sm {
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.75rem;
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Form Footer
   ============================================================ */
.form-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.form-footer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.form-footer-daftar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.form-footer-daftar span {
    font-weight: 600;
}

.form-footer a:not(.btn-daftar) {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:not(.btn-daftar):hover { text-decoration: underline; }

.btn-daftar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.05rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22), 0 2px 6px rgba(124, 58, 237, 0.16);
    vertical-align: middle;
}

.btn-daftar:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28), 0 4px 10px rgba(124, 58, 237, 0.22);
    text-decoration: none;
}

[data-theme="dark"] .btn-daftar {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
    color: #fff;
}

/* ============================================================
   OTP MODAL
   ============================================================ */
.otp-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem 2rem 1.75rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    text-align: center;
    animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.otp-close-btn {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    width: 32px; height: 32px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.otp-close-btn:hover { color: var(--danger); border-color: var(--danger); }

/* OTP icon */
.otp-icon-wrap {
    position: relative;
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 1.25rem;
}

.otp-icon-setup {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}

.otp-icon-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.2);
    animation: ringPulse 2.2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.1); opacity: 0.5; }
}

.otp-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.otp-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
}

/* QR code */
.qr-code-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: inline-block;
    margin: 1rem 0 0.75rem;
}

.qr-code-box img { width: 160px; height: 160px; display: block; }

/* Secret key */
.otp-secret-wrap {
    margin: 0.75rem 0 0.5rem;
}

.otp-secret-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.otp-secret-code {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    word-break: break-all;
}

[data-theme="dark"] .otp-secret-code {
    background: #1e3a5f;
    color: #93c5fd;
}

.otp-skip-link {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    margin: 0.75rem 0 0.25rem;
    font-weight: 600;
    transition: var(--transition);
}

.otp-skip-link:hover { color: var(--primary); }

/* OTP boxes — 6 digit inputs with separator */
.otp-boxes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.25rem 0 1rem;
}

.otp-box {
    width: 46px; height: 54px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: var(--transition);
    caret-color: transparent;
}

.otp-box:focus {
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.otp-sep {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    margin: 0 0.1rem;
    user-select: none;
}

.btn-otp-verify { margin-top: 0; }

/* ============================================================
   Animations & Misc
   ============================================================ */
/* Shake on error */
.shake {
    animation: shake 0.45s cubic-bezier(.36,.07,.19,.97);
}

@keyframes shake {
    10%, 90%  { transform: translateX(-2px); }
    20%, 80%  { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-6px); }
    40%, 60%  { transform: translateX(6px); }
}

/* Fade-in on load */
.form-panel {
    animation: panelFadeIn 0.8s 0.1s both cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Bootstrap Modal backdrop override
   ============================================================ */
.modal-backdrop { background: rgba(5, 15, 40, 0.55); backdrop-filter: blur(4px); }
.modal-dialog   { margin: auto; }

/* ============================================================
   Responsive — Tablet & Mobile
   ============================================================ */
@media (max-width: 900px) {
    .panel-left { flex: 0 0 40%; }
}

@media (max-width: 700px) {
    body { overflow-y: auto; }

    .split-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* Panel kiri lebih tinggi & konten disederhanakan */
    .panel-left {
        flex: none;
        height: 280px;
        align-items: flex-end;
        justify-content: flex-start;
        background-position: center 30%;
        overflow: hidden;
    }

    .panel-left::before {
        background: linear-gradient(
            to top,
            rgba(5, 15, 40, 0.96) 0%,
            rgba(5, 15, 40, 0.6) 50%,
            rgba(5, 15, 40, 0.15) 100%
        );
    }

    .panel-left-content {
        padding: 1rem 1.5rem 1.75rem;
        align-items: flex-start;
        text-align: left;
        gap: 0.6rem;
    }

    /* Sembunyikan logo di panel kiri (sudah ada di form card) */
    .brand-logos   { display: none; }

    /* Tagline: perkecil */
    .panel-tagline {
        top: 1rem;
        right: 1rem;
        padding: 0.6rem 0.85rem;
        border-radius: 16px;
    }
    .panel-tagline strong { font-size: 1.02rem; }
    .panel-tagline em     { font-size: 0.84rem; }

    .panel-hero { top: 2.05rem; }

    .panel-hero-title { font-size: clamp(1.05rem, 5.2vw, 1.76rem); }
    .panel-hero-subtitle {
        margin-top: 0.25rem;
        font-size: clamp(0.62rem, 3.3vw, 0.95rem);
        text-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
    }

    /* Badge & judul */
    .panel-badge    { font-size: 0.65rem; padding: 0.25rem 0.7rem; }
    .panel-title    { font-size: 2.4rem; letter-spacing: -1.5px; }
    .panel-subtitle { font-size: 0.82rem; margin-top: 0; }

    /* Sembunyikan chips & footer di mobile */
    .panel-chips        { display: none; }
    .panel-footer-text  { display: none; }

    /* Form panel kanan */
    .panel-right {
        flex: 1;
        justify-content: center;
        padding: 1.75rem 1.25rem 3rem;
        overflow-y: visible;
    }

    .panel-right::before { display: none; }

    .form-panel { max-width: 400px; }

    /* Logo inline di form card: sedikit lebih kecil */
    .form-logo-inline {
        width: 44px;
        height: 44px;
        min-width: 44px;
        max-width: 44px;
    }

    .form-title { font-size: 1.3rem; }
    .form-desc  { font-size: 0.8rem; }

    /* Theme toggle jangan terlalu dekat header */
    .btn-theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .otp-box { width: 42px; height: 50px; font-size: 1.2rem; }
}

@media (max-width: 400px) {
    .panel-title  { font-size: 2rem; }
    .form-panel   { max-width: 92vw; }
    .otp-boxes    { gap: 0.35rem; }
    .otp-box      { width: 38px; height: 46px; }
}
