:root {
    --bg-main: #111827;
    --bg-card: #1f2937;
    --border-color: #374151;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --neon: #00ff87;
    --neon-blue: #60efff;
    --danger-bg: rgba(127, 29, 29, 0.5);
    --danger-border: rgba(239, 68, 68, 0.5);
    --danger-text: #fecaca;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 28rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.gradient-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--neon), var(--neon-blue));
}

.header { text-align: center; margin-bottom: 2rem; }

.header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(to right, var(--neon), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p { color: var(--text-muted); font-size: 0.875rem; }

.form-group { margin-bottom: 1.5rem; }

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-main);
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    color: white;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
}

input[type="text"]:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 2px rgba(0, 255, 135, 0.2);
}

input::placeholder { color: #6b7280; text-transform: none; letter-spacing: normal; }

.error-message {
    background-color: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1.5rem;
    display: none;
}

button {
    width: 100%;
    background: linear-gradient(to right, var(--neon), var(--neon-blue));
    color: #111827;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.4);
}

footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(17, 24, 39, 0.5);
    padding: 1.5rem 1rem;
}

.footer-content {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--neon); }

@media (max-width: 600px) {
    .footer-content { flex-direction: column; gap: 1rem; }
    .footer-links a { margin: 0 0.75rem; }
}
.error-message.visible {
    display: block;
}
.text-page {
    max-width: 48rem;
    text-align: left;
}
.text-content h2 {
    font-size: 1.25rem;
    color: var(--neon);
    margin: 1.5rem 0 0.5rem 0;
}
.text-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.text-content ul {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.text-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}