/* ===== Login — terminal line stays single-line, proper indent/colors ===== */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --amber: #F0CC69;
    --teal: #00ffcc;
}

html,
body {
    margin: 0;
    height: 100%;
    font-family: "Share Tech Mono", monospace;
    color: #e6e7e9
}

body {
    background: #0b0d10 url("/static/images/apocalypse-6559868_960_720.webp") center/cover fixed no-repeat;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .80);
    z-index: 0
}

.terminal-wrap,
.hero,
.actions,
.login-panel {
    position: relative;
    z-index: 1
}

/* Terminal box (matches home) */
.terminal-wrap {
    display: flex;
    justify-content: center;
    padding: 5vh 1rem 2vh
}

.terminal {
    width: min(640px, 90vw);
    max-width: 640px;
    background: #0f1317cc;
    border: 1px solid #00ffcc55;
    border-radius: 12px;
    box-shadow: 0 0 12px #00ffcc55;
    padding: 1rem 1.25rem;
}

.term-feed {
    /* even left indent so prompt isn't hugging the border */
    padding-left: 1.25rem;
}

.term-line {
    line-height: 1.6;
    letter-spacing: .03em
}

.term-prompt {
    color: #98ffc9
}

.term-online {
    color: #b6ffd6
}

/* keep the ONLINE + cursor on the same line */
.nowrap {
    white-space: nowrap;
}

/* blinking block cursor right after ONLINE */
.cursor {
    display: inline-block;
    width: .7ch;
    height: 1.05em;
    background: #b6ffd6;
    margin-left: 4px;
    animation: blink 1s steps(1, end) infinite;
    vertical-align: -0.15em;
}

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

/* Hero */
.hero {
    text-align: center;
    margin-top: 1rem
}

.title {
    font-size: clamp(38px, 6vw, 88px);
    color: var(--amber);
    text-shadow: 0 0 8px rgba(240, 204, 105, .8), 0 0 18px rgba(240, 204, 105, .6), 0 0 32px rgba(240, 204, 105, .4)
}

.tagline {
    letter-spacing: .1em;
    font-size: 1rem;
    opacity: .9
}

/* Buttons (match home) */
.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0 6vh
}

.btn-access {
    display: inline-block;
    min-width: 240px;
    text-align: center;
    padding: .9rem 1.6rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #a5fff1;
    background: #0b0f10;
    border: 1px solid var(--teal);
    box-shadow: 0 0 14px rgba(0, 255, 204, .6), inset 0 0 8px rgba(0, 255, 204, .2);
    text-transform: uppercase;
    letter-spacing: .1em;
    animation: pulse 2.5s ease-in-out infinite
}

.btn-access:hover {
    filter: brightness(1.1)
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(0, 255, 204, .4), inset 0 0 6px rgba(0, 255, 204, .15)
    }

    50% {
        box-shadow: 0 0 28px rgba(0, 255, 204, .8), inset 0 0 10px rgba(0, 255, 204, .3)
    }
}

/* Login panel uses the same terminal box */
.login-panel {
    width: min(640px, 90vw);
    max-width: 640px;
    background: #0f1317cc;
    border: 1px solid #00ffcc55;
    border-radius: 12px;
    box-shadow: 0 0 12px #00ffcc55;
    padding: 1rem 1.25rem;
    margin: 0 auto 8vh
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem
}

.field-label {
    justify-self: center;
    color: #98ffc9;
    letter-spacing: .08em;
    font-size: .95rem
}

.field {
    width: 100%;
    background: #0b0f10;
    color: #e6e7e9;
    border: 1px solid #00ffcc33;
    border-radius: 8px;
    padding: .75rem .9rem;
    outline: none;
    box-shadow: inset 0 0 6px rgba(0, 255, 204, .15)
}

.field::placeholder {
    color: #78b5a7;
    opacity: .8
}

.field:focus {
    border-color: var(--teal);
    box-shadow: 0 0 16px rgba(0, 255, 204, .35), inset 0 0 8px rgba(0, 255, 204, .28)
}

.btn-block {
    width: 100%;
    min-width: 0
}

.error {
    display: none;
    margin-top: .3rem;
    padding: .65rem .85rem;
    border-radius: 8px;
    border: 1px solid #ff6b6b;
    background: #2a0f0f;
    color: #ffd9d9;
    text-align: center
}

.error.show {
    display: block
}

.actions-tight {
    margin: 1.2rem 0 .2rem
}