.login-card {
    max-width: 420px;
    text-align: left;
}

.back-link {
    display: inline-block;
    font-size: .75rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color .2s;
    font-family: 'DM Mono', monospace;
}

.back-link:hover { color: var(--green); }

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

label {
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: .875rem;
    padding: .7rem 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}

input::placeholder { color: var(--muted); opacity: .5; }

input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,230,118,.08);
}

.error-msg {
    font-size: .78rem;
    color: #f87171;
    min-height: 1.1rem;
}

/* ── BUTTON ── */
.btn {
    margin-top: .5rem;
    width: 100%;
    padding: .8rem;
    background: var(--green);
    border: none;
    border-radius: 8px;
    color: #080a0f;
    font-family: 'Syne', sans-serif;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    position: relative;
    transition: background .2s, transform .1s;
}

.btn:hover:not(:disabled) { background: #33eb91; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

.btn-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.btn.loading .btn-text  { opacity: 0; }
.btn.loading .btn-loader { display: flex; }

.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(8,10,15,.3);
    border-top-color: #080a0f;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }