/* ==========================================================================
   Secure Portal — Minimal Pre-Authentication Stylesheet
   ========================================================================== */

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

:root, [data-theme="dark"] {
    --bg-oled: #050608;
    --bg-surface: #0c0e15;
    --bg-card: #10121b;
    --bg-card-hover: #181c2b;
    
    --accent-primary: #ccff00;
    --accent-primary-glow: rgba(204, 255, 0, 0.4);
    --accent-secondary: #00f0ff;
    --accent-secondary-glow: rgba(0, 240, 255, 0.35);
    --accent-flare: #ff3b00;
    
    --text-pure: #ffffff;
    --text-primary: #e2e8f0;
    --text-secondary: #8a99ad;
    --text-muted: #526073;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(204, 255, 0, 0.6);
    --glass-bg: rgba(12, 14, 21, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.7);
    --glow-bg-1: rgba(204, 255, 0, 0.18);
    --glow-bg-2: rgba(0, 240, 255, 0.18);
}

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

body {
    font-family: 'Outfit', 'Prompt', -apple-system, sans-serif;
    background-color: var(--bg-oled);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--glow-bg-1);
    top: -150px;
    left: -150px;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: var(--glow-bg-2);
    bottom: -200px;
    right: -200px;
}

.app-header {
    height: 72px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.2), rgba(0, 240, 255, 0.2));
    border: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-pure);
}

.text-neon {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary-glow);
}

.brand-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.stealth-landing-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.stealth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 36px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stealth-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(204, 255, 0, 0.1);
    border: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.stealth-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: 1px;
    text-align: center;
}

.stealth-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-tabs-wrapper {
    display: flex;
    width: 100%;
    background: var(--bg-surface);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-tab-btn.active {
    background: var(--bg-card);
    color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stealth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-pure);
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary-glow);
}

.auth-error-msg {
    font-size: 12px;
    color: var(--accent-flare);
    min-height: 16px;
    text-align: center;
}

.btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #a8e000);
    color: #000;
    box-shadow: 0 0 16px var(--accent-primary-glow);
    transition: all 0.2s ease;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.5);
    box-shadow: none !important;
    pointer-events: none;
}

.stealth-submit-btn {
    padding: 12px;
    font-size: 14px;
    margin-top: 6px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 16px;
    color: var(--text-pure);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}
