/* ============================================================================
 * public.css — the pages people see before they're in: login, password reset,
 * team invite, admin setup and 404. ajenta.com.au's look (owner, 27 Sep):
 * navy background with its hero's blueprint grid and lime glow, a navy-800 card,
 * Sora headings, lime buttons with navy text (palette v2, 3 Nov 2026). Dark only: no light theme here
 * (the dashboards keep their switch). Loads after tokens.css (fonts, wordmark).
 * ========================================================================== */

:root { color-scheme: dark; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body.public {
    font-family: var(--font-sans);
    background: #020d2f;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ajenta.com.au's hero: a faint blueprint grid fading out, and a lime glow */
body.public::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 45%, transparent 95%);
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 45%, transparent 95%);
}
body.public::after {
    content: '';
    position: fixed;
    top: -8rem;
    right: -10%;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: rgba(200, 255, 67, 0.10);
    filter: blur(64px);
    pointer-events: none;
}

::selection { background: #c8ff43; color: #020d2f; }

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #142342;
    border: 1px solid #2c3a56;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* The wordmark block: ajenta. with a lime eyebrow under it */
.logo, .brand { text-align: center; margin-bottom: 28px; }
.logo { padding-bottom: 24px; border-bottom: 1px solid #2c3a56; }
.logo h1, .brand { font-size: 38px; line-height: 1; }
.logo p {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c8ff43;
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    word-spacing: 0.12em;
    color: #ffffff;
}
h2 { font-size: 26px; text-align: center; margin-bottom: 20px; }
.container > h1, .container form > h1, .container > div > h1 { font-size: 28px; text-align: center; margin-bottom: 10px; }

.sub, .subtitle, .message {
    color: #b9bec7;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
    margin: -8px 0 24px;
}
.container > h1 + .subtitle, .container form > h1 + .subtitle, .container > div > h1 + .subtitle,
.container > h1 + .message { margin-top: 0; }

.form-group { margin-bottom: 18px; }

label {
    display: block;
    color: #d2d7e2;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

input:where(:not([type="checkbox"], [type="radio"])) {
    width: 100%;
    padding: 12px 14px;
    background: #0a1736;
    border: 1px solid #2c3a56;
    border-radius: 10px;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:where(:not([type="checkbox"], [type="radio"])):focus { outline: none; border-color: #c8ff43; box-shadow: 0 0 0 3px rgba(200, 255, 67, 0.18); }
input::placeholder { color: #6a7589; }
input[readonly] { color: #b9bec7; background: #0a1736; cursor: not-allowed; }
#invite-form input { margin-bottom: 16px; }

.btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    margin-top: 8px;
    background: #c8ff43;
    color: #020d2f;
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(200, 255, 67, 0.12);
    transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: #b4eb2e; transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid #c8ff43; outline-offset: 3px; }
.btn:disabled { background: #2c3a56; color: #b9bec7; box-shadow: none; transform: none; cursor: not-allowed; }

/* Messages */
.error, .success, .alert {
    display: none;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}
.error.show, .success.show, .alert.show { display: block; }
.error, .alert.error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); color: #fca5a5; }
.success, .alert.success { background: rgba(200, 255, 67, 0.10); border: 1px solid rgba(200, 255, 67, 0.35); color: #d6ff70; }
.warning {
    background: rgba(255, 178, 36, 0.10);
    border: 1px solid rgba(255, 178, 36, 0.35);
    color: #ffb224;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.badge {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(200, 255, 67, 0.12);
    border: 1px solid rgba(200, 255, 67, 0.35);
    color: #c8ff43;
    font-size: 12px;
    font-weight: 600;
}

.footer-link { text-align: center; margin-top: 20px; color: #b9bec7; font-size: 14px; }
.footer-link a { color: #c8ff43; text-decoration: none; font-weight: 600; }   /* on navy, lime is the action (palette v2) */
.footer-link a:hover { text-decoration: underline; }

/* Invite */
.loading { text-align: center; color: #b9bec7; padding: 32px 0; }
.business-name { color: #c8ff43; }
#invite-form { display: none; }

/* 404 */
.error-code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(80px, 20vw, 140px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #c8ff43;
    text-align: center;
    margin: 4px 0 12px;
}
.countdown { text-align: center; color: #6a7589; font-size: 14px; margin-bottom: 14px; }
.countdown span { color: #ffffff; font-weight: 600; }
.progress-bar { width: 200px; height: 3px; margin: 0 auto 28px; background: #2c3a56; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: #c8ff43; border-radius: 3px; transition: width 1s linear; }

/* The company line under every public page (filled by js/public.js) */
.public-footer {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    text-align: center;
    color: #6a7589;
    font-size: 13px;
    line-height: 1.8;
}
.public-footer a { color: #b9bec7; text-decoration: none; }
.public-footer a:hover { color: #ffffff; }

@media (max-width: 480px) {
    .container { padding: 28px 20px; }
    .logo h1, .brand { font-size: 32px; }
}
