/* AiChiaBill - Dedicated Admin Portal Authentication & Cockpit 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;
}

/* 2-Column High-End Split Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    min-height: 100vh;
}

@media (max-width: 980px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-showcase-panel {
        display: none;
    }
}

/* LEFT: Authentication Terminal */
.admin-auth-panel {
    background: rgba(12, 18, 34, 0.95);
    border-right: 1px solid var(--border-subtle);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px);
}

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

.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: 32px;
}

.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(160, 230, 200, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

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

.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: 28px;
}

.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);
}

.auth-panel-bottom {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
}

.auth-panel-bottom code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--teal-light);
    font-size: 11px;
}

/* RIGHT: Infrastructure & Operations Showcase */
.admin-showcase-panel {
    background: 
        radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.16) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.10) 0%, transparent 50%),
        #070b16;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Subtle Cyber Grid */
.admin-showcase-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.cockpit-header {
    position: relative;
    z-index: 2;
    margin-bottom: 32px;
}

.cockpit-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 16px;
}

.cockpit-pill strong {
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
}

.cockpit-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.cockpit-desc {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 8px;
    max-width: 620px;
    line-height: 1.6;
}

/* 4 Bento Architecture Cards */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
    margin-bottom: 32px;
}

.arch-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1.2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s ease;
}

.arch-card:hover {
    border-color: rgba(20, 184, 166, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.arch-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.icon-teal { background: rgba(13, 148, 136, 0.2); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.35); }
.icon-blue { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.icon-amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.icon-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

.arch-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.arch-meta {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.arch-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    margin-top: 8px;
}

/* Live Topology Flow */
.topology-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 20px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topo-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topo-step-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.2);
    color: #2dd4bf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(20, 184, 166, 0.4);
}

.topo-step-text strong {
    display: block;
    font-size: 12px;
    color: #f8fafc;
}

.topo-step-text small {
    display: block;
    font-size: 10px;
    color: #94a3b8;
}

.topo-arrow {
    color: var(--teal-light);
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.cockpit-footer-stat {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
