:root {
    --bg-color: #0d0d0d;
    --term-green: #00ff41;
    --term-dim: #008f11;
    --term-red: #ff3333;
    --font-stack: 'Courier New', Courier, monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--term-green);
    font-family: var(--font-stack);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.terminal-window {
    width: 100%;
    max-width: 700px;
    border: 2px solid var(--term-dim);
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
    background: rgba(13, 13, 13, 0.95);
}

h1 {
    margin: 0 0 2rem 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--term-dim);
    padding-bottom: 10px;
    letter-spacing: 2px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2rem;
}

label {
    font-size: 0.9rem;
    color: var(--term-dim);
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="password"],
input[type="text"] {
    background: #1a1a1a;
    border: 1px solid var(--term-dim);
    color: white;
    padding: 15px;
    padding-right: 50px;
    /* Make room for the eye icon */
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

input:focus {
    border-color: var(--term-green);
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--term-dim);
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1.2rem;
    margin: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.toggle-password:hover {
    color: var(--term-green);
    background: transparent;
}

.toggle-password:focus {
    outline: 2px solid var(--term-green);
    outline-offset: 2px;
}

.error-message {
    color: var(--term-red);
    font-size: 0.85rem;
    margin-top: -5px;
    margin-bottom: 10px;
    display: none;
}

button {
    background: var(--term-green);
    color: black;
    border: none;
    padding: 15px;
    font-family: inherit;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px;
}

button:hover {
    background: #00cc33;
}

button:disabled {
    background: var(--term-dim);
    cursor: not-allowed;
}

.output-area {
    margin-top: 2rem;
    border-top: 1px dashed var(--term-dim);
    padding-top: 1rem;
    display: none;
    /* Hidden until roast */
}

.stat-line {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    font-family: monospace;
}

.roast-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--term-red);
    white-space: pre-wrap;
    margin-bottom: 2rem;
}

/* THE MONEY MAKER */
.ad-terminal {
    border: 1px solid var(--term-dim);
    padding: 15px;
    margin-top: 2rem;
    background: rgba(0, 255, 65, 0.05);
    display: none;
    /* Hidden if no CTA */
}

.ad-header {
    font-size: 0.8rem;
    color: var(--term-green);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ad-link {
    color: #58a6ff;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
}

.ad-link:hover {
    text-decoration: underline;
}

/* Warning Banner */
.sys-warning {
    border: 2px solid #ffcc00;
    background: rgba(255, 204, 0, 0.05);
    padding: 15px;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffcc00;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: bold;
}

.blink-warning {
    display: inline-block;
    animation: blink-alert 1.5s infinite;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

@keyframes blink-alert {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0.3;
    }
}

.cursor::after {
    content: '█';
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .terminal-window {
        padding: 1.5rem;
        max-width: 100%;
    }

    h1 {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    input[type="password"],
    input[type="text"],
    button {
        font-size: 1rem;
        padding: 12px;
    }

    .roast-text {
        font-size: 1rem;
    }

    .toggle-password {
        font-size: 1rem;
    }
}

.terminal-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #666;
    text-align: center;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.terminal-footer a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.2s ease;
}

.terminal-footer a:hover {
    text-decoration: underline;
    color: #00ff88;
}

.terminal-footer .tagline {
    color: #888;
    font-style: italic;
    font-size: 11px;
}