/* ==========================================================================
   DEV GRID SERVICE - AUTHENTICATION TERMINAL STYLING ENGINE
   Theme: Cyber Black & Neon Blue (#00E5FF) Gateway Panel
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: #05070b; /* Deep Cyber Black */
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* 🕸️ Ambient Background Matrix Grid Grid Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

/* 🔵 Floating Neon Kinetic Energy Core */
body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: pulseCoreGlow 4s infinite alternate ease-in-out;
}

/* 🖥️ Terminal Viewport Layout Wrapper */
.auth-shield-viewport {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* 🛡️ Glass-morphic Cyberpunk Card Matrix Base */
.auth-terminal-box {
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid #1e293b;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    padding: 45px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 229, 255, 0.03);
    position: relative;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-terminal-box:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 229, 255, 0.1);
}

/* 🏷️ Top Meta Banner Box Alert */
.cyber-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

/* 🏢 Header Content Configurations */
.terminal-header {
    text-align: center;
    margin-bottom: 35px;
}

.terminal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.terminal-header h2 span {
    color: #00e5ff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.terminal-header p {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 6px;
}

/* 🎛️ Form Controls & Inputs Layout */
.cyber-form-group {
    margin-bottom: 24px;
}

.cyber-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cyber-label-row label {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyber-label-row a {
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.cyber-label-row a:hover {
    color: #00e5ff;
}

.cyber-input-wrapper {
    position: relative;
}

.cyber-input {
    width: 100%;
    background: rgba(5, 7, 11, 0.8);
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cyber-input:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25), inset 0 0 8px rgba(0, 229, 255, 0.05);
}

/* 🚀 Heavy High-Voltage Submit Button Trigger */
.auth-action-btn {
    width: 100%;
    background: linear-gradient(90deg, #00c3ff, #00e5ff);
    color: #05070b;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.auth-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px #00e5ff;
}

.auth-action-btn:active {
    transform: translateY(1px);
}

/* 🗄️ Footer System Node Interconnections */
.terminal-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #94a3b8;
}

.terminal-footer a {
    color: #00e5ff;
    text-decoration: none;
    font-weight: 600;
    transition: text-shadow 0.2s;
}

.terminal-footer a:hover {
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

/* 🔄 System Animation Transitions */
@keyframes pulseCoreGlow {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

/* Responsive Structural Collapse */
@media (max-width: 480px) {
    .auth-terminal-box {
        padding: 35px 20px;
    }
}
/* ==========================================================================
   AUTH PAGES — EXTENDED STYLING (v2)
   Back-home link, OAuth buttons, divider, password toggle, strength meter
   ========================================================================== */

:root {
    --text-dark: #64748b;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    z-index: 1;
    pointer-events: none;
}

.glow-ambient, .glow-ambient-2 {
    position: fixed;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    filter: blur(10px);
}

.glow-ambient { background: radial-gradient(circle, rgba(0, 229, 255, 0.18) 0%, transparent 70%); }
.glow-ambient-2 { background: radial-gradient(circle, rgba(88, 101, 242, 0.16) 0%, transparent 70%); }

.accent-text { color: #00e5ff; }

/* 🏠 BACK TO HOME LINK */
.back-home-link {
    position: fixed;
    top: 28px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    z-index: 20;
}

.back-home-logo { width: 26px; height: 26px; border-radius: 4px; object-fit: cover; }

/* 🔑 OAUTH PROVIDER BUTTONS */
.oauth-buttons-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: 1px solid transparent;
}

.oauth-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-oauth-discord {
    background: #5865F2;
    color: #ffffff;
}
.btn-oauth-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.35);
}

.btn-oauth-google {
    background: #ffffff;
    color: #1f2937;
    border-color: #e5e7eb;
}
.btn-oauth-google:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.12);
}

/* ➖ DIVIDER */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1e293b;
}
.auth-divider span {
    padding: 0 14px;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: #64748b;
    white-space: nowrap;
}

/* 👁️ PASSWORD SHOW/HIDE TOGGLE */
.cyber-input-wrapper { display: flex; align-items: center; }
.cyber-input-wrapper .cyber-input { padding-right: 60px; }

.pass-toggle-btn {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.2s;
}
.pass-toggle-btn:hover { color: #00e5ff; }

.forgot-pass-link {
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-pass-link:hover { color: #00e5ff; }

/* 📶 PASSWORD STRENGTH METER */
.pass-strength-meter {
    height: 4px;
    background: #111827;
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}
.pass-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.25s ease, background 0.25s ease;
}
.pass-strength-fill.weak { background: #ef4444; }
.pass-strength-fill.medium { background: #fbbf24; }
.pass-strength-fill.strong { background: #22c55e; }

/* Active plan banner text color fix */
#target-plan-text { color: #ffffff; font-weight: bold; }
.cyber-tag {
    display: block;
    margin-bottom: 25px;
    text-align: center;
    border-radius: 4px;
}

/* 📱 RESPONSIVE */
@media (max-width: 480px) {
    .back-home-link { top: 18px; left: 18px; font-size: 13px; }
    .back-home-logo { width: 22px; height: 22px; }
}
