/* ============================================================
   AETRAM BULLION ERP - Premium Auth / Login (Dual Theme)
   ============================================================ */

body.auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.auth-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    transition: background .3s, color .3s;
    padding: 24px;
    overflow-y: auto;
    z-index: 0;
}

/* Animated backdrop */
.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    transition: background .3s;
}

[data-theme="dark"] .auth-page::before {
    background: #000000;
}

[data-theme="light"] .auth-page::before {
    background:
        radial-gradient(ellipse 100% 80% at 20% 20%, rgba(212,175,55,.08), transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 80%, rgba(212,175,55,.05), transparent 45%),
        linear-gradient(160deg, #F8FAFC 0%, #FFFFFF 50%, #F1F5F9 100%);
}

.auth-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.auth-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,191,0,.35);
    animation: authFloat linear infinite;
}

@keyframes authFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    8% { opacity: .8; }
    92% { opacity: .6; }
    100% { transform: translateY(-120px) rotate(540deg); opacity: 0; }
}

.auth-center {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.auth-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.auth-logo-img {
    width: 120px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(249, 200, 81, 0.35));
}

.auth-glass-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-card-border);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    text-align: left;
}

[data-theme="dark"] .auth-glass-card {
    box-shadow: 0 24px 64px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}

[data-theme="light"] .auth-glass-card {
    box-shadow: 0 16px 48px rgba(0,0,0,.08);
}

.auth-glass-card .auth-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.auth-glass-card .auth-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.auth-security-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-gold);
    background: rgba(212,175,55,.1);
    border: 1px solid var(--border-gold);
    padding: 6px 12px;
    border-radius: 20px;
}

.auth-glass-card .form-label {
    color: var(--text-primary);
    font-size: 12.5px;
}

.auth-glass-card .form-control {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
    padding: 11px 14px;
    border-radius: 8px;
}

.auth-glass-card .form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(255,191,0,.15);
}

.auth-glass-card .input-group-text {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--brand-gold);
}

.auth-glass-card .btn-primary {
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    margin-top: 4px;
}

.auth-mfa-hint {
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(212,175,55,.06);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-mfa-hint i { color: var(--brand-gold); }

.auth-footer {
    margin-top: 28px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.auth-footer p { margin: 0 0 4px; }

.auth-mfa-input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 10px;
    font-variant-numeric: tabular-nums;
}
