/* auth.css
   -----------------------------------------------------------------------------
   Shared styling for the MONARCH auth pages (login / signup / forgot / reset).
   Scoped to .auth-* classes so it neither depends on nor collides with the
   terminal's main style.css. MONARCH "Onyx & Gold" identity.
   ----------------------------------------------------------------------------- */

:root {
    --auth-bg:        #000000;
    --auth-panel:     #0a0a0a;
    --auth-line:      rgba(212, 175, 55, 0.28);
    --auth-line-soft: rgba(255, 255, 255, 0.08);
    --auth-gold:      #D4AF37;
    --auth-gold-dim:  #9c8330;
    --auth-text:      #f4f4f4;
    --auth-muted:     #7d7d7d;
    --auth-cyan:      #37d4d4;
    --auth-error:     #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    -webkit-font-smoothing: antialiased;
}

body.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 34%, rgba(212, 175, 55, 0.06), transparent 60%),
        var(--auth-bg);
}

.auth-shell { width: 100%; max-width: 396px; }

/* --- Brand block: logo, then everything beneath it --- */
.auth-brand { text-align: center; margin-bottom: 30px; }

.auth-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 18px;
    display: block;
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.18));
}

.auth-wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.55rem;
    letter-spacing: 0.42em;
    text-indent: 0.42em;  /* offsets the tracking so it stays optically centred */
    color: var(--auth-text);
    margin: 0;
}

.auth-tagline {
    margin: 10px 0 0;
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    color: var(--auth-gold-dim);
}

/* --- Console panel holding the form --- */
.auth-panel {
    background: var(--auth-panel);
    border: 1px solid var(--auth-line);
    border-radius: 4px;
    padding: 30px 28px 26px;
    position: relative;
}
.auth-panel::before {
    content: "";
    position: absolute;
    top: -1px; left: 18px; right: 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--auth-gold), transparent);
    opacity: 0.8;
}

.auth-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
}
.auth-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0;
}
.auth-panel-tag {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--auth-muted);
}

.auth-intro {
    margin: 0 0 20px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--auth-muted);
}

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    color: var(--auth-muted);
    margin-bottom: 7px;
}

.field input {
    width: 100%;
    background: #050505;
    border: 1px solid var(--auth-line-soft);
    border-radius: 3px;
    padding: 12px 13px;
    color: var(--auth-text);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #4a4a4a; }
.field input:focus {
    outline: none;
    border-color: var(--auth-cyan);
    box-shadow: 0 0 0 3px rgba(55, 212, 212, 0.14);
}

/* --- Banners --- */
.auth-error,
.auth-notice {
    border-radius: 3px;
    padding: 10px 12px;
    margin-bottom: 18px;
    font-size: 0.76rem;
    line-height: 1.45;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.auth-error {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--auth-error);
}
.auth-error::before { content: "!"; font-weight: 700; }
.auth-notice {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--auth-line);
    color: var(--auth-gold);
}

/* --- Submit button --- */
.auth-submit {
    width: 100%;
    margin-top: 6px;
    padding: 13px;
    background: var(--auth-gold);
    color: #000;
    border: none;
    border-radius: 3px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}
.auth-submit:hover  { background: #e6c451; }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { outline: 2px solid var(--auth-cyan); outline-offset: 2px; }

/* --- Secondary links row (under the button) --- */
.auth-links {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.auth-links.center { justify-content: center; }

.auth-link {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--auth-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}
.auth-link:hover { color: var(--auth-cyan); }
.auth-link.strong { color: var(--auth-gold-dim); }
.auth-link.strong:hover { color: var(--auth-gold); }

/* --- Footer status line --- */
.auth-foot {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--auth-line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: var(--auth-muted);
}
.auth-foot .secure { color: var(--auth-gold-dim); }
.auth-foot .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--auth-cyan);
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 6px var(--auth-cyan);
}

.auth-copyright {
    text-align: center;
    margin-top: 22px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: #3f3f3f;
}

@media (max-width: 420px) {
    .auth-panel { padding: 24px 20px; }
    .auth-wordmark { font-size: 1.3rem; letter-spacing: 0.34em; text-indent: 0.34em; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
