:root {
    --bg-deep: #0a0e1a;
    --bg-panel: rgba(18, 22, 38, 0.85);
    --cyan: #00e5ff;
    --magenta: #ff2fd0;
    --text-main: #e8ecf5;
    --text-muted: #8b93ad;
    --accent-gradient: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 100%);
    --border-soft: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
    background: var(--bg-deep);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.16), transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(255, 47, 208, 0.16), transparent 42%);
    animation: drift 18s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
    mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
}

.banner {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    width: 100%;
    text-align: center;
    padding: 1.75rem 1rem 1.25rem;
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: 1px;
}

.brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.35));
}

.sub-banner {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.stage {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.login-container {
    position: relative;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    padding: 2.75rem 2.25rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 229, 255, 0.04);
    width: 350px;
    max-width: 90vw;
    text-align: center;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.login-container:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 229, 255, 0.12);
}

.terminal:hover {
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 47, 208, 0.14);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: var(--cyan);
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.terminal .card-icon {
    background: rgba(255, 47, 208, 0.08);
    border-color: rgba(255, 47, 208, 0.3);
    color: var(--magenta);
    filter: drop-shadow(0 0 10px rgba(255, 47, 208, 0.35));
}

h2 {
    text-align: center;
    color: var(--text-main);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 0 0 1.6rem;
    font-size: 1.25rem;
}

form {
    display: flex;
    flex-direction: column;
}

.input-group {
    position: relative;
    margin-bottom: 1.75rem;
    text-align: left;
}

input {
    width: 100%;
    padding: 10px 4px;
    background: transparent;
    color: var(--text-main);
    border: none;
    border-bottom: 1px solid var(--border-soft);
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus {
    border-bottom-color: var(--cyan);
    box-shadow: 0 1px 0 0 var(--cyan);
}

label {
    position: absolute;
    top: 10px;
    left: 4px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
}

input:focus + label,
input:not(:placeholder-shown) + label {
    top: -16px;
    font-size: 0.75rem;
    color: var(--cyan);
}

button {
    background: var(--accent-gradient);
    background-size: 160% 160%;
    background-position: 0% 50%;
    color: #0a0e1a;
    font-weight: 700;
    border: none;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-position 0.4s ease, box-shadow 0.25s ease, transform 0.15s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Orbitron', sans-serif;
}

button:hover {
    background-position: 100% 50%;
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.35);
}

button:active {
    transform: scale(0.97);
}

#secret-button {
    margin-top: 0.75rem;
    padding: 8px 20px;
    font-size: 0.8rem;
}

.terminal {
    border-color: rgba(255, 47, 208, 0.35);
}

.terminal-text {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

#user-details {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.content-container {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    max-width: 800px;
    margin: 2rem auto;
    transition: box-shadow 0.25s ease;
}

.content-container:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 229, 255, 0.1);
}

p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 1.2em;
}

h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--cyan);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

ul, ol {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--magenta);
    text-decoration: underline;
}

blockquote {
    border-left: 3px solid var(--magenta);
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
    color: var(--text-muted);
}

code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}
