/* AiChiaBill - Dedicated Admin Portal Authentication Styles */
:root {
    --bg-deep: #060913;
    --bg-surface: #0c1222;
    --bg-card: rgba(15, 23, 42, 0.75);
    --border-subtle: #1e293b;
    --border-glow: rgba(20, 184, 166, 0.4);
    --teal-primary: #0d9488;
    --teal-light: #14b8a6;
    --teal-glow: rgba(20, 184, 166, 0.25);
    --blue-accent: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Centered Admin Layout */
.admin-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 32px 16px;
    background: 
        radial-gradient(circle at 50% 20%, rgba(13, 148, 136, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        var(--bg-deep);
    position: relative;
}

.admin-layout::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Center Authentication Terminal Card */
.admin-auth-panel {
    margin: auto;
    background: rgba(12, 18, 34, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(20, 184, 166, 0.12);
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(24px);
}

.auth-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.brand-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: #2dd4bf;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 999px;
}

.brand-badge-pill .pulse-dot {
    width: 7px;
    height: 7px;
    background: #14b8a6;
    border-radius: 50%;
    box-shadow: 0 0 8px #14b8a6;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.auth-header-wrap {
    margin-bottom: 28px;
}

.brand-logo-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo-title span { color: var(--teal-light); }

.auth-tagline {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

/* Alert Banners */
.alert-banner {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* Form elements */
.form-field-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-prefix {
    position: absolute;
    left: 14px;
    color: #64748b;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.form-input-field {
    width: 100%;
    background: #080d19;
    border: 1.2px solid #1e293b;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    padding: 13px 14px 13px 44px;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input-field:focus {
    border-color: var(--teal-light);
    background: #0b1324;
    box-shadow: 0 0 0 3px var(--teal-glow);
}

.btn-auth-submit {
    width: 100%;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
    margin-top: 24px;
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.45);
}
