@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
    /* Primary Neon Colors */
    --primary-color: #00ffaa;
    --secondary-color: #ff00aa;
    --tertiary-color: #aa00ff;
    --accent-color: #ffaa00;
    
    /* Background/Text Colors */
    --bg-color: #050511;
    --bg-dark: #030308;
    --text-color: #e0e0ff;
    --alert-color: #ff3c00;
    
    /* Shadow/Glow Effects */
    --primary-glow: 0 0 10px #00ffaa, 0 0 20px rgba(0, 255, 170, 0.7);
    --secondary-glow: 0 0 10px #ff00aa, 0 0 20px rgba(255, 0, 170, 0.7);
    --tertiary-glow: 0 0 10px #aa00ff, 0 0 20px rgba(170, 0, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Share Tech Mono', monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    opacity: 0;
    animation: bodyFadeIn 1s forwards 0.5s;
}

/* Terminal Animation Overlay */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.terminal-container {
    width: 80%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #151515;
    border-bottom: 1px solid #333;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-close {
    background-color: #ff5f56;
}

.control-minimize {
    background-color: #ffbd2e;
}

.control-expand {
    background-color: #27c93f;
}

.terminal-content {
    padding: 15px;
    height: 500px;
    overflow-y: auto;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

.terminal-title {
    color: var(--text-color);
    font-size: 14px;
}

.line {
    margin-bottom: 5px;
    animation: terminalFadeIn 0.2s forwards;
    opacity: 0;
}

.command {
    color: var(--primary-color);
}

.error {
    color: var(--alert-color);
}

.highlight {
    color: var(--secondary-color);
}

.success {
    color: var(--primary-color);
}

/* Main Container Styling */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.cyber-grid {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(170, 0, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(170, 0, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    opacity: 0.5;
    animation: gridPulse 10s infinite;
}

.top-grid {
    top: 0;
    left: 0;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: top;
    height: 400px;
}

.bottom-grid {
    bottom: 0;
    left: 0;
    transform: perspective(500px) rotateX(-60deg);
    transform-origin: bottom;
    height: 400px;
}

.cyber-scanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 170, 0.4), 
        rgba(0, 255, 170, 0.8), 
        rgba(0, 255, 170, 0.4), 
        transparent);
    animation: scanAnimation 5s linear infinite;
}

.ascii-animation {
    margin: 40px auto 30px;
    text-align: center;
}

#ascii-art {
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.neon-text {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    position: relative;
}

.neon-text::after {
    content: attr(value);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
    z-index: -1;
    opacity: 0.7;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin: 20px 0 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    animation: titlePulse 5s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: "GUESSTAPP";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.glitch-text::before {
    color: var(--secondary-color);
    z-index: -1;
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: var(--primary-color);
    z-index: -2;
    animation: glitch-2 3s infinite linear alternate-reverse;
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.digital-warning {
    font-size: 0.8rem;
    color: var(--alert-color);
    letter-spacing: 2px;
    margin-bottom: 40px;
    animation: warningPulse 3s infinite;
}

.auth-container {
    margin: 0 auto;
    max-width: 500px;
}

.cyber-frame {
    position: relative;
    padding: 35px;
    background: rgba(10, 15, 20, 0.8);
    border-radius: 2px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.cyber-frame::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, 
        var(--primary-color), var(--tertiary-color), 
        var(--secondary-color), var(--primary-color));
    animation: borderGlow 10s linear infinite;
    background-size: 400% 400%;
    filter: blur(5px);
    opacity: 0.3;
}

.corner {
    position: absolute;
    width: 15px;
    height: 15px;
}

.corner-tl {
    top: 0;
    left: 0;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.corner-tr {
    top: 0;
    right: 0;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 255, 170, 0.3);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex: 1;
    transition: all 0.3s;
    overflow: hidden;
}

.tab-btn:hover .btn-content {
    color: var(--primary-color);
}

.tab-btn.active .btn-content {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: var(--primary-glow);
}

.form-wrapper {
    position: relative;
}

form {
    display: none;
    animation: formFadeIn 0.5s forwards;
}

form.active {
    display: block;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(20, 20, 30, 0.8);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

input:focus + .input-glow {
    opacity: 1;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%), 
        rgba(0, 255, 170, 0.2) 0%, 
        transparent 70%
    );
}

.form-alert {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-align: center;
    margin: 15px 0;
    height: 20px;
    letter-spacing: 1px;
}

.button-wrapper {
    position: relative;
    margin-top: 30px;
}

.cyber-button {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 0 5px var(--primary-color);
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, 
        var(--primary-color), var(--tertiary-color), 
        var(--secondary-color), var(--primary-color));
    background-size: 400% 400%;
    animation: borderGlow 10s linear infinite;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
}

.cyber-button:hover::before {
    opacity: 0.3;
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.2), transparent);
    transform: translateX(-100%);
    transition: all 0.5s;
}

.cyber-button:hover .btn-glitch {
    transform: translateX(100%);
    transition: all 0.5s;
}

.footer {
    margin-top: 50px;
    text-align: center;
}

.status-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.indicator {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.indicator-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.indicator-dot.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    animation: dotPulse 2s infinite;
}

.indicator-dot.scanning {
    background-color: var(--tertiary-color);
    box-shadow: 0 0 8px var(--tertiary-color);
    animation: dotPulse 1s infinite;
}

.crypto-hash {
    font-size: 0.75rem;
    color: rgba(224, 224, 255, 0.5);
    letter-spacing: 1px;
}

/* Animations */
@keyframes bodyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes terminalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scanAnimation {
    0% { top: -10px; }
    100% { top: 100%; }
}

@keyframes glitch-1 {
    0% { transform: translateX(-2px); }
    25% { transform: translateX(2px); }
    50% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
    100% { transform: translateX(-2px); }
}

@keyframes glitch-2 {
    0% { transform: translateX(2px); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(1px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(2px); }
}

@keyframes titlePulse {
    0% { text-shadow: 0 0 5px var(--text-color), 0 0 10px var(--primary-color); }
    50% { text-shadow: 0 0 15px var(--text-color), 0 0 20px var(--primary-color), 0 0 30px var(--tertiary-color); }
    100% { text-shadow: 0 0 5px var(--text-color), 0 0 10px var(--primary-color); }
}

@keyframes dotPulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes warningPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gridPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* For screen distortion effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 999;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}
