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

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

body {
    background-color: #0a0a0a;
    color: #33ff33;
    font-family: 'Share Tech Mono', 'VT323', monospace;
    font-size: 18px;
    overflow: hidden;
    position: relative;
}

/* CRT Monitor Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 3;
}

.terminal-container {
    width: 100vw;
    height: 100vh;
    background: #0c0c0c;
    position: relative;
    display: flex;
    flex-direction: column;
    filter: contrast(1.1) brightness(0.9);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(51, 255, 51, 0.02) 50%
    );
    background-size: 100% 2px;
    animation: scanlines 8s linear infinite;
    pointer-events: none;
}

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

.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    z-index: 1;
    pointer-events: none;
}

.noise::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100"%3E%3Cfilter id="noise"%3E%3CfeTurbulence baseFrequency="0.65" /%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="1"/%3E%3C/svg%3E');
    animation: noise 1s steps(2) infinite;
}

@keyframes noise {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10px, -10px); }
}

.terminal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #33ff33;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(51, 255, 51, 0.05) 0%, transparent 100%);
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-header i {
    font-size: 20px;
    color: #33ff33;
    text-shadow: 0 0 8px rgba(51, 255, 51, 0.8);
}

.terminal-content {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-screen {
    text-align: center;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0%, 100% { 
        opacity: 1;
        filter: brightness(1);
    }
    92% { 
        opacity: 0.98;
        filter: brightness(0.98);
    }
}

.ascii-lock pre {
    color: #33ff33;
    font-size: 14px;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.6);
    font-family: 'VT323', monospace;
}

.ascii-lock i {
    font-size: 20px;
    position: absolute;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    margin: 20px auto;
    letter-spacing: 0.1em;
    animation: typing 1.5s steps(25, end), blinkCursor 0.5s step-end infinite;
    border-right: 2px solid #33ff33;
    padding-right: 5px;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: #33ff33; }
}

.auth-method {
    margin: 25px 0;
    font-size: 20px;
    color: #33ff33;
    text-shadow: 0 0 3px rgba(51, 255, 51, 0.5);
}

.auth-input input {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #33ff33;
    color: #33ff33;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 16px;
    text-align: center;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: inset 0 0 5px rgba(51, 255, 51, 0.1);
}

.auth-input input:focus {
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.4), inset 0 0 5px rgba(51, 255, 51, 0.2);
    background: rgba(51, 255, 51, 0.05);
}

.auth-input button {
    background: rgba(51, 255, 51, 0.1);
    border: 1px solid #33ff33;
    color: #33ff33;
    padding: 8px 24px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
    text-transform: uppercase;
    text-shadow: 0 0 3px rgba(51, 255, 51, 0.5);
}

.auth-input button:hover {
    background: rgba(51, 255, 51, 0.2);
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.5);
    transform: translateY(-1px);
}

.auth-feedback {
    margin-top: 20px;
    min-height: 30px;
}

.error {
    color: #ff3333;
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.8);
    animation: errorBlink 0.3s 3;
}

@keyframes errorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hidden {
    display: none !important;
}

.danger-screen {
    text-align: center;
    color: #ff3333;
}

.danger-header h1 {
    font-size: 60px;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.8);
    margin-bottom: 15px;
}

.blink {
    animation: redAlert 0.5s infinite;
}

@keyframes redAlert {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

.danger-header h2 {
    font-size: 28px;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.8);
}

.connection-details {
    margin: 30px auto;
    padding: 15px;
    border: 1px solid #ff3333;
    max-width: 800px;
    text-align: left;
    background: rgba(255, 51, 51, 0.05);
    font-family: 'Share Tech Mono', monospace;
    max-height: 50vh;
    overflow-y: auto;
}

.connection-details p {
    margin: 10px 0;
    font-size: 18px;
}

.connection-details .detail-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 51, 51, 0.2);
}

.connection-details .detail-label {
    color: #ff6666;
    font-weight: normal;
}

.connection-details .detail-value {
    color: #ffaaaa;
    text-align: right;
}

.connection-details::-webkit-scrollbar {
    width: 10px;
}

.connection-details::-webkit-scrollbar-track {
    background: rgba(255, 0, 0, 0.1);
}

.connection-details::-webkit-scrollbar-thumb {
    background: #f00;
    border-radius: 5px;
}

.lockout-message {
    margin-top: 40px;
}

.lockout-message p {
    margin: 10px 0;
    font-size: 24px;
}

.countdown {
    font-size: 30px;
    color: #ff0;
    text-shadow: 0 0 20px #ff0;
}

.pattern-grid {
    display: inline-grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 10px;
    margin: 20px 0;
}

.pattern-dot {
    width: 50px;
    height: 50px;
    border: 1px solid #33ff33;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.8);
}

.pattern-dot:hover {
    background: rgba(51, 255, 51, 0.2);
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
}

.pattern-dot.active {
    background: #33ff33;
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.8);
}

.biometric-scanner {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    border: 1px solid #33ff33;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #33ff33, transparent);
    animation: scan 3s linear infinite;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.8);
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.fingerprint {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 20 Q30 50 50 80 Q70 50 50 20" fill="none" stroke="%230f0" stroke-width="1" opacity="0.3"/></svg>') center/cover;
}

.attempt-timer {
    margin-top: 40px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.timer-bar {
    height: 3px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #33ff33;
    position: relative;
    overflow: hidden;
}

.timer-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #33ff33;
    width: 100%;
    animation: timerCountdown 45s linear;
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.8);
}

@keyframes timerCountdown {
    from { width: 100%; }
    to { width: 0%; }
}

.timer-text {
    display: block;
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.7;
}

/* Warning Screen Styles */
.warning-screen {
    text-align: center;
    animation: warningPulse 1s infinite;
}

@keyframes warningPulse {
    0%, 100% { 
        filter: brightness(1) sepia(1) hue-rotate(30deg);
    }
    50% { 
        filter: brightness(1.1) sepia(1) hue-rotate(30deg);
    }
}

.warning-header {
    margin-bottom: 40px;
}

.warning-icon {
    font-size: 80px;
    color: #ffaa33;
    text-shadow: 0 0 20px rgba(255, 170, 51, 0.8);
    animation: warningSpin 3s linear infinite;
}

@keyframes warningSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.warning-text {
    font-size: 60px;
    color: #ffaa33;
    text-shadow: 0 0 15px rgba(255, 170, 51, 0.8);
    margin: 15px 0;
    font-family: 'VT323', monospace;
    letter-spacing: 3px;
}

.warning-header h2 {
    font-size: 24px;
    color: #ff8833;
    text-shadow: 0 0 10px rgba(255, 136, 51, 0.8);
}

.warning-message {
    background: rgba(255, 170, 51, 0.05);
    border: 1px solid #ffaa33;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
}

.warning-message p {
    margin: 10px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffaa33;
}

.warning-message i {
    font-size: 24px;
}

.warning-countdown {
    font-size: 28px;
    color: #ff6633;
    text-shadow: 0 0 10px rgba(255, 102, 51, 0.8);
    margin: 20px 0;
}

.abort-button {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #f00;
    color: #f00;
    padding: 15px 40px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.abort-button:hover {
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 30px #f00;
    transform: scale(1.05);
}

.danger-icon {
    font-size: 100px;
    color: #ff3333;
    text-shadow: 0 0 30px rgba(255, 51, 51, 0.8);
    animation: dangerShake 0.3s infinite;
}

.warning-auth-continue {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ffaa33;
    background: rgba(255, 170, 51, 0.03);
    animation: warningBorder 1.5s infinite;
}

@keyframes warningBorder {
    0%, 100% { 
        border-color: #ffaa33;
        box-shadow: 0 0 10px rgba(255, 170, 51, 0.3);
    }
    50% { 
        border-color: #ff6633;
        box-shadow: 0 0 15px rgba(255, 102, 51, 0.5);
    }
}

.continue-text {
    font-size: 22px;
    color: #ffaa33;
    text-shadow: 0 0 10px rgba(255, 170, 51, 0.8);
    margin-bottom: 15px;
    animation: textBlink 1.5s infinite;
}

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

.warning-auth-continue .auth-method {
    color: #ff0;
    text-shadow: 0 0 15px #ff0;
}

.warning-auth-continue .auth-input input {
    border-color: #ffaa33;
    color: #ffaa33;
    background: rgba(255, 170, 51, 0.05);
}

.warning-auth-continue .auth-input input:focus {
    box-shadow: 0 0 20px #ff0;
}

.warning-auth-continue .auth-input button {
    background: rgba(255, 170, 51, 0.1);
    border-color: #ffaa33;
    color: #ffaa33;
}

.warning-auth-continue .auth-input button:hover {
    background: rgba(255, 102, 51, 0.2);
    box-shadow: 0 0 15px rgba(255, 102, 51, 0.5);
    border-color: #ff6633;
    color: #ff6633;
}

.terminal-footer {
    padding: 12px;
    border-top: 1px solid #33ff33;
    display: flex;
    justify-content: space-around;
    background: linear-gradient(0deg, rgba(51, 255, 51, 0.05) 0%, transparent 100%);
    font-size: 14px;
    text-shadow: 0 0 3px rgba(51, 255, 51, 0.5);
}

.terminal-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-footer i {
    color: #33ff33;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.8);
}

.logged-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 170, 51, 0.05);
    border: 1px solid #ffaa33;
    color: #ffaa33;
    text-shadow: 0 0 10px rgba(255, 170, 51, 0.8);
    animation: loggedGlow 2s infinite;
}

.logged-message.danger {
    background: rgba(255, 51, 51, 0.1);
    border-color: #ff3333;
    color: #ff3333;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.8);
}

.logged-message i {
    font-size: 40px;
    animation: eyeBlink 3s infinite;
}

@keyframes loggedGlow {
    0%, 100% { 
        opacity: 0.9;
        box-shadow: 0 0 10px rgba(255, 170, 51, 0.3);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 170, 51, 0.5);
    }
}

@keyframes eyeBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* Floating Lizard */
.floating-lizard {
    position: fixed;
    width: 80px;
    height: 48px;
    z-index: 10;
    pointer-events: none;
    animation: floatAround 30s infinite linear;
    filter: drop-shadow(0 0 10px rgba(51, 255, 51, 0.6));
    opacity: 0.7;
    transform-origin: center;
}

.floating-lizard img {
    width: 100%;
    height: 100%;
    animation: lizardWiggle 3s infinite ease-in-out;
}

@keyframes floatAround {
    0% {
        left: -100px;
        top: 20%;
        transform: rotate(0deg) scaleX(1);
    }
    12.5% {
        left: 25%;
        top: 10%;
        transform: rotate(15deg) scaleX(1);
    }
    25% {
        left: 50%;
        top: 30%;
        transform: rotate(-10deg) scaleX(1);
    }
    37.5% {
        left: 75%;
        top: 15%;
        transform: rotate(20deg) scaleX(1);
    }
    50% {
        left: calc(100% + 100px);
        top: 40%;
        transform: rotate(0deg) scaleX(-1);
    }
    62.5% {
        left: 75%;
        top: 60%;
        transform: rotate(-15deg) scaleX(-1);
    }
    75% {
        left: 50%;
        top: 80%;
        transform: rotate(10deg) scaleX(-1);
    }
    87.5% {
        left: 25%;
        top: 70%;
        transform: rotate(-20deg) scaleX(-1);
    }
    100% {
        left: -100px;
        top: 20%;
        transform: rotate(0deg) scaleX(1);
    }
}

@keyframes lizardWiggle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(2deg);
    }
    75% {
        transform: translateY(3px) rotate(-2deg);
    }
}

/* Add hover effect for fun */
.floating-lizard:hover {
    animation-play-state: paused;
}

.floating-lizard:hover img {
    animation: lizardPanic 0.5s infinite;
}

@keyframes lizardPanic {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}
