/* Wraith Link - Web Installer Styles */

:root {
    --bg-color: #050508;
    --card-bg: rgba(10, 10, 15, 0.8);
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.5);
    --secondary: #7000ff;
    --accent: #ff0055;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border: rgba(0, 242, 255, 0.2);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Orbitron', 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: var(--font-mono);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg,
            rgba(255, 0, 0, 0.02),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.02));
    background-size: 100% 2px, 3px 100%;
    z-index: 999;
    pointer-events: none;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://grain-y.com/images/grain.png');
    /* Fallback to CSS noise if URL fails */
    opacity: 0.05;
    z-index: 998;
    pointer-events: none;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px var(--primary-glow);
    position: relative;
    z-index: 100;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--secondary));
    z-index: -1;
    opacity: 0.3;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    background: linear-gradient(90deg, var(--primary), #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.system-status {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-mono);
    outline: none;
    transition: all 0.3s;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* Terminal Overlay (Installer) */
.terminal-container {
    width: 95%;
    max-width: 1200px;
    height: 80vh;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9);
}

.terminal-header {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.prompt {
    color: var(--primary);
}

.success {
    color: #00ff88;
}

.error {
    color: var(--accent);
}

.warning {
    color: #ffae00;
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--primary);
    vertical-align: middle;
    animation: blink 1s infinite;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    /* More frames here... */
    100% {
        clip: rect(67px, 9999px, 62px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(10px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(70px, 9999px, 90px, 0);
    }
}