:root {
    --blue: #1d4ed8;
    --blue-mid: #1e3a8a;
    --ink: #0d1117;
    --muted: #6b7280;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: radial-gradient(1200px 600px at 10% -10%, #e0e9ff 0%, rgba(224, 233, 255, 0) 60%), radial-gradient(900px 600px at 110% 10%, #d6e2ff 0%, rgba(214, 226, 255, 0) 55%), #f3f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 76px;
    position: relative;
    overflow-x: hidden;
    color: var(--ink);
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.glow-orb-1 {
    width: 600px;
    height: 600px;
    top: -250px;
    right: -150px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.20) 0%, transparent 62%);
}

.glow-orb-2 {
    width: 480px;
    height: 480px;
    bottom: -200px;
    left: -150px;
    background: radial-gradient(circle, rgba(23, 37, 84, 0.14) 0%, transparent 68%);
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(29, 78, 216, 0.08);
    padding: 40px 36px;
    animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.brand-logo img {
    height: 32px;
    width: auto;
}

.staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.panel-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 1.45;
}

.alert i {
    margin-top: 1px;
    flex-shrink: 0;
}

.alert-error {
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.otp-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.field-wrap {
    position: relative;
    margin-bottom: 18px;
}

.field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #c9d0db;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

.field-input {
    width: 100%;
    padding: 18px 16px 6px 44px;
    border: 1.5px solid #e9ecef;
    border-radius: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    background: #fdfdfd;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.field-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
    background: #fff;
}

.field-label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #adb5bd;
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}

.field-input:focus~.field-label,
.field-input:not(:placeholder-shown)~.field-label {
    top: 8px;
    transform: none;
    font-size: 10.5px;
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field-input:focus~.field-icon {
    color: var(--blue);
}

.otp-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.otp-box {
    flex: 1 1 0;
    min-width: 0;
    max-width: 54px;
    height: 62px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    background: #fdfdfd;
    color: var(--ink);
    caret-color: transparent;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s, background 0.15s;
}

.otp-box:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
    transform: translateY(-3px) scale(1.05);
    background: #fff;
}

.otp-box.otp-filled {
    border-color: var(--blue);
    background: #eff6ff;
    color: var(--blue);
}

.otp-timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.otp-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

.otp-resend {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: not-allowed;
    transition: color 0.2s;
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    margin-top: 20px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    box-shadow: 0 8px 32px rgba(29, 78, 216, 0.35), 0 2px 8px rgba(29, 78, 216, 0.16);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(29, 78, 216, 0.4);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #d1d5db;
    font-size: 0.78rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f3f4f6;
}

.btn-ghost {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e9ecef;
    background: #fff;
    color: #374151;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.btn-ghost:hover {
    border-color: rgba(29, 78, 216, 0.28);
    background: #eff6ff;
    transform: translateY(-1px);
}

.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 8, 20, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    z-index: 10;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: fa-spin 1s linear infinite;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .otp-box {
        height: 52px;
        font-size: 1.2rem;
    }
}
