* {
    box-sizing: border-box;
}
body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
}
.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--color-border);
    background: transparent;
}
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-charcoal);
    text-decoration: none;
}
.auth-brand img {
    width: 46px;
}
.auth-header > a:last-child {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.role-selection {
    max-width: 1180px;
    margin: auto;
    padding: clamp(70px, 9vw, 120px) 24px;
    text-align: center;
}
.auth-eyebrow {
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.role-selection > h1,
.coming-soon h1 {
    max-width: 850px;
    margin: 18px auto;
    color: var(--color-charcoal);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
}
.role-selection > p,
.coming-soon p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}
.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 60px 0 26px;
    text-align: left;
}
.role-grid article {
    min-height: 350px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}
.role-grid article > span {
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.role-grid h2 {
    margin: 70px 0 12px;
    font-size: 2rem;
}
.role-grid p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}
.role-grid a,
.coming-soon a {
    margin-top: auto;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--color-charcoal);
    color: white;
    font-weight: 600;
    text-decoration: none;
}
.role-card--featured {
    border-color: var(--color-primary) !important;
    transform: translateY(-12px);
}
.role-card--featured a {
    background: var(--color-primary);
}
.role-selection > small {
    color: var(--color-muted);
}

.auth-form-page {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: clamp(46px, 8vw, 84px) 20px;
}

.auth-form-card {
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

.auth-form-card h1 {
    margin: 14px 0 12px;
    color: var(--color-charcoal);
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    line-height: 1;
}

.auth-form-card > p {
    margin: 0 0 28px;
    color: var(--color-muted);
    line-height: 1.6;
}

.auth-form-card form {
    display: grid;
    gap: 16px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-form-card label {
    display: grid;
    gap: 7px;
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-form-card input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: white;
    font: inherit;
}

.auth-password-field {
    position: relative;
    display: block;
}

.auth-password-field input {
    padding-right: 48px;
}

.auth-password-field button {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 38px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-password-field button:hover,
.auth-password-field button:focus {
    background: #f0e8dd;
    color: var(--color-charcoal);
    outline: none;
}

.auth-password-field .material-symbols-outlined {
    display: block;
    font-size: 22px;
    line-height: 34px;
}

.auth-form-card small {
    color: var(--color-muted);
    font-weight: 500;
}

.auth-check {
    grid-template-columns: auto 1fr !important;
    align-items: center;
}

.auth-check input {
    width: auto;
    min-height: 0;
}

#register-error,
#recover-message,
#reset-message {
    min-height: 22px;
    margin: 0;
    color: var(--color-danger);
}

.auth-form-card button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.auth-secondary-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.coming-soon {
    max-width: 900px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 90px);
    margin: auto;
    padding: 60px 24px;
    text-align: center;
}
.coming-soon a {
    margin-top: 34px;
}
@media (max-width: 760px) {
    .auth-brand img {
        width: 38px;
    }
    .auth-brand .brand-domain {
        font-size: 1.18rem;
    }
    .role-grid {
        grid-template-columns: 1fr;
    }
    .role-grid article {
        min-height: 280px;
    }
    .role-card--featured {
        transform: none;
    }
    .role-grid h2 {
        margin-top: 44px;
    }
    .auth-form-grid {
        grid-template-columns: 1fr;
    }
}
