/* === Container === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #000 60%, #001a00 100%);
    font-family: 'Share Tech Mono', monospace;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Grid background overlay */
.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0, 255, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    animation: moveGrid 20s linear infinite;
    z-index: 0;
}

/* Matrix canvas layer */
.matrix-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.25;
    z-index: 1;
}

/* === Auth Box === */
.auth-box {
    width: 100%;
    max-width: 420px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border: 1px solid #00ff66;
    border-radius: 12px;
    color: #00ff66;
    box-shadow: 0 0 25px rgba(0, 255, 100, 0.25);
    position: relative;
    z-index: 2;
    animation: glowPulse 2.5s ease-in-out infinite alternate;
    text-align: center;
}

/* === Title === */
.auth-box h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #00ff66;
    text-shadow: 0 0 10px rgba(0, 255, 100, 0.6);
    letter-spacing: 2px;
}

/* Terminal subtitle */
.terminal-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

/* === Inputs === */
.auth-box input {
    width: 100%;
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid rgba(0, 255, 100, 0.3);
    color: #00ff99;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
    transition: all 0.25s ease;
}

.auth-box input::placeholder {
    color: #00ff66aa;
    font-style: italic;
}

.auth-box input:focus {
    border-color: #00ffcc;
    box-shadow: 0 0 12px rgba(0, 255, 150, 0.4);
    outline: none;
    background: rgba(0, 40, 0, 0.9);
}

/* === Checkbox === */
.auth-box label {
    font-size: 0.9rem;
    color: #00ff66;
    cursor: pointer;
}

/* === Button === */
.cyber-button {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 1rem auto;
    background: linear-gradient(135deg, #003300, #006600);
    border: 1px solid #00ff66;
    color: #00ff66;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.cyber-button:hover {
    background: linear-gradient(135deg, #004d1a, #00b359);
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.5),
                0 0 30px rgba(0, 255, 180, 0.3);
    transform: translateY(-2px);
}

/* === Footer link === */
.auth-footer {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 1rem;
    color: #bbb;
}

.auth-footer a {
    color: #00aaff;
    font-weight: bold;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #33ccff;
}

/* === Animations === */
@keyframes glowPulse {
    from { box-shadow: 0 0 18px rgba(0, 255, 120, 0.15); }
    to   { box-shadow: 0 0 28px rgba(0, 255, 120, 0.35); }
}

@keyframes moveGrid {
    from { transform: translate(0, 0); }
    to   { transform: translate(-25px, -25px); }
}
