:root {
    --accent: #1d4ed8;
    --ink: #0f172a;
    --muted: #475569;
    --line: #cbd5e1;
    --canvas: #eef2f7;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--canvas);
    font: 15px/1.5 Inter, system-ui, sans-serif;
    color: var(--ink);
}

.card {
    width: min(440px, 100%);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 16px 40px rgba(15, 23, 42, 0.10);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 18px;
}

.identity {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.starjar-logo {
    width: 48px;
    height: auto;
    display: block;
}

.identity-divider {
    width: 1px;
    height: 38px;
    margin-left: auto;
    background: #e2e8f0;
}

.organization-logo {
    display: block;
    flex: 0 0 140px;
    width: 140px;
    height: 52px;
    object-fit: contain;
}

@media (max-width: 430px) {
    .card {
        padding: 32px 24px;
    }

    .brand span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .organization-logo {
        flex-basis: 112px;
        width: 112px;
        height: 46px;
    }
}

h1 {
    margin: 0;
    font-size: 26px;
}

.lede {
    margin: 0;
    color: var(--muted);
}

.account-email {
    margin: -12px 0 0;
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-size: 13px;
    font-weight: 600;
}

.help {
    margin: -6px 0 2px;
    color: var(--muted);
    font-size: 13px;
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}

input[type=email], input[type=text], input[type=password] {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

input[aria-invalid=true] {
    border-color: #dc2626;
}

.primary, .secondary {
    height: 46px;
    border-radius: 8px;
    font: 600 15px Inter, system-ui, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.primary {
    border: 0;
    background: var(--accent);
    color: #fff;
}

.secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.alt {
    text-align: center;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
}

.or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
}

.or::before, .or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 14px;
}

.note {
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--surface-muted);
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

.small {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin: 0;
}

a {
    color: var(--accent);
}

@media (max-width: 520px) {
    body {
        padding: 12px;
        place-items: start center;
    }

    .card {
        margin-top: 12px;
        padding: 32px 24px;
        border-radius: 12px;
    }
}
