/* AppSmash auth pages — Mineral/Transmission tokens from design/handoff. */

* { box-sizing: border-box; }

.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 28px;
    background: #E3E5DF;
    color: #14181A;
    font-family: 'Public Sans', system-ui, sans-serif;
}

/* Brand mark: accent tile with the compass glyph, wordmark reads the tile as the "A" */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #14181A;
}

.brand-tile {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #2B4EF5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32),
                0 4px 10px -2px rgba(43, 78, 245, .5),
                0 1px 2px rgba(20, 24, 26, .2);
}

.brand-word {
    font: 700 25px/1 'Public Sans', system-ui, sans-serif;
    letter-spacing: .01em;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #F8F9F6;
    border: 1px solid #CBD0C6;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 24px 50px -32px rgba(20, 24, 26, .35);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eyebrow {
    font: 500 11.5px/1 'IBM Plex Mono', monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #2B4EF5;
}

.auth-card h1 {
    margin: 0;
    font: 700 26px/1.15 'Public Sans', system-ui, sans-serif;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.auth-sub {
    margin: 0;
    font: 400 14.5px/1.6 'Public Sans', system-ui, sans-serif;
    color: #5A6259;
}

.auth-sub strong { color: #14181A; }

.auth-sub a { color: #2B4EF5; }

.auth-sub a:hover { color: #1E38BC; }

.error-box {
    background: rgba(210, 64, 47, .1);
    border: 1px solid rgba(210, 64, 47, .22);
    color: #D2402F;
    border-radius: 10px;
    padding: 10px 12px;
    font: 500 13px/1.5 'Public Sans', system-ui, sans-serif;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.field-label {
    font: 500 10.5px/1 'IBM Plex Mono', monospace;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #6E7670;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form select {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #D5DACF;
    border-radius: 11px;
    padding: 12px 14px;
    font: 400 14.5px/1.35 'Public Sans', system-ui, sans-serif;
    color: #14181A;
    box-shadow: inset 0 1px 2px rgba(20, 24, 26, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236E7670' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.auth-form input::placeholder { color: #AEB5A6; }

.auth-form input:hover,
.auth-form select:hover { border-color: #AEB5A6; }

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #2B4EF5;
    box-shadow: inset 0 1px 2px rgba(20, 24, 26, .04), 0 0 0 3px rgba(43, 78, 245, .14);
}

.auth-form .field-label:not(:first-child) { margin-top: 8px; }

.auth-alt { font-size: 13.5px; }

.btn-submit {
    margin-top: 8px;
    width: 100%;
    background: #2B4EF5;
    color: #F2F5FF;
    border: none;
    border-radius: 12px;
    padding: 13px 16px;
    font: 600 14.5px/1 'Public Sans', system-ui, sans-serif;
    cursor: pointer;
}

.btn-submit:hover { background: #1E38BC; }

.sent-tile {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(14, 124, 102, .1);
    border: 1px solid rgba(14, 124, 102, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0E7C66;
}

.auth-foot {
    font: 500 10.5px/1.6 'IBM Plex Mono', monospace;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #6E7670;
    text-align: center;
}

/* ---------- Beta application form (/beta) ---------- */

.beta-card { max-width: 480px; }

.field-hint {
    text-transform: none;
    letter-spacing: 0;
    font: 400 11.5px/1 'Public Sans', system-ui, sans-serif;
    color: #6E7670;
}

.auth-form textarea {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #D5DACF;
    border-radius: 11px;
    padding: 12px 14px;
    font: 400 14.5px/1.5 'Public Sans', system-ui, sans-serif;
    color: #14181A;
    box-shadow: inset 0 1px 2px rgba(20, 24, 26, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
    resize: vertical;
    min-height: 84px;
}

.auth-form textarea::placeholder { color: #AEB5A6; }

.auth-form textarea:hover { border-color: #AEB5A6; }

.auth-form textarea:focus {
    outline: none;
    border-color: #2B4EF5;
    box-shadow: inset 0 1px 2px rgba(20, 24, 26, .04), 0 0 0 3px rgba(43, 78, 245, .14);
}

/* ---------- Private-beta gate notice (beta page, after a /login bounce) ---------- */

.gate-box {
    background: #E9ECE4;
    border: 1px solid #CBD0C6;
    color: #14181A;
    border-radius: 10px;
    padding: 10px 12px;
    font: 400 13px/1.5 'Public Sans', system-ui, sans-serif;
}
