/* The sign-in page.
 *
 * Its own stylesheet rather than the Steex auth page's, because this screen
 * was designed separately: a white card split in two on a pale grey field,
 * navy type, and one cyan action. Everything behind the sign-in still uses
 * the template - this is the only screen that departs from it, and it only
 * loads here.
 */

.auth-shell {
    --auth-ink: #0f2a43;
    --auth-ink-soft: #64748b;
    --auth-line: #e3e8ef;
    --auth-accent: #00aeef;
    --auth-accent-dark: #0098d1;
    --auth-tint: #eaf6fd;
    --auth-field: #ffffff;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background: #f4f6f9;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--auth-ink);
}

.auth-card {
    width: 100%;
    max-width: 1060px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 42, 67, .08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-pitch {
    padding: 3rem 3rem 2rem;
    border-right: 1px solid var(--auth-line);
    display: flex;
    flex-direction: column;
}

.auth-pitch h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .75rem;
}

.auth-pitch p.auth-lead {
    color: var(--auth-ink-soft);
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.auth-art {
    margin: 0 auto 2.5rem;
    width: 100%;
    max-width: 320px;
}

/* An inline SVG has no intrinsic size, and as a flex item with none it
 * collapses to nothing at all. */
.auth-art svg {
    display: block;
    width: 100%;
    height: auto;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.1rem;
}

.auth-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--auth-tint);
    color: var(--auth-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
}

.auth-feature h2 {
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
}

.auth-feature p {
    font-size: .82rem;
    color: var(--auth-ink-soft);
    margin: 0;
}

.auth-fineprint {
    margin-top: auto;
    padding-top: 2rem;
    font-size: .78rem;
    color: #94a3b8;
}

.auth-form {
    padding: 3rem 3.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 2.5rem;
}

.auth-brand-name {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
}

.auth-brand-name span { color: var(--auth-accent); }

.auth-brand-sub {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--auth-ink-soft);
    margin-top: .35rem;
}

.auth-form h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.auth-form .auth-sub {
    color: var(--auth-ink-soft);
    margin-bottom: 2rem;
}

.auth-label {
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .5rem;
    display: block;
}

.auth-field {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-field .auth-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.auth-field input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: var(--auth-field);
    padding: 0 2.9rem;
    font-size: .95rem;
    color: var(--auth-ink);
    transition: border-color .15s, box-shadow .15s;
}

.auth-field input::placeholder { color: #a3aec0; }

.auth-field input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, .12);
}

.auth-field .auth-reveal {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: #94a3b8;
    padding: .35rem;
    line-height: 0;
    cursor: pointer;
}

.auth-field .auth-reveal:hover { color: var(--auth-ink); }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .875rem;
    color: var(--auth-ink);
    cursor: pointer;
}

.auth-remember input {
    width: 18px;
    height: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    accent-color: var(--auth-accent);
    cursor: pointer;
}

.auth-link {
    color: var(--auth-accent);
    font-size: .875rem;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover { color: var(--auth-accent-dark); text-decoration: underline; }

.auth-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    cursor: pointer;
    transition: background .15s, transform .05s;
}

.auth-submit:hover { background: var(--auth-accent-dark); }
.auth-submit:active { transform: translateY(1px); }

.auth-foot {
    margin-top: 1.75rem;
    text-align: center;
    font-size: .875rem;
    color: var(--auth-ink-soft);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: .75rem 1rem;
    font-size: .875rem;
    margin-bottom: 1.5rem;
}

.auth-validation { color: #b91c1c; font-size: .8rem; margin: -.85rem 0 1rem; }

/* Kept last on purpose: .auth-pitch declares display:flex further up, and a
 * media query earlier in the file loses to it whatever the screen is. */
@media (max-width: 991.98px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    /* On a phone the form is the whole point; the selling half goes. */
    .auth-pitch { display: none; }
}

@media (max-width: 575.98px) {
    .auth-form { padding: 2.25rem 1.5rem; }
    .auth-form h1 { font-size: 1.75rem; }
}
