body {
    background: #f5f7f6;
    box-sizing: border-box;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
    color: #1a1f1e;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7776;
    margin-bottom: 1.5rem;
}

.login-link {
    font-size: 14px;
    margin-bottom: 12px;
    color: #4b5563;
}

.login-link a {
    color: #396761;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Secondary, deliberately quieter entry point (e.g. the Partner link) —
   never competes visually with the primary account CTA/links above it. */
.login-link--quiet {
    font-size: 13px;
    color: #8b9594;
    padding-top: 12px;
    margin-top: 4px;
    margin-bottom: 0;
    border-top: 1px solid #eef1f0;
}

.login-link--quiet a {
    color: #5b7c77;
    font-weight: 500;
}

.form-control {
    margin-bottom: 14px;
}

.form-control label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
}

.form-control input,
.form-control select,
.form-control textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e5e4;
    border-radius: 10px;
    /* Deliberately 16px, not smaller — iOS Safari auto-zooms the viewport
       on focus for any text input rendered below 16px, which is what was
       spreading the auth forms edge-to-edge on mobile. Do not shrink this. */
    font-size: 16px;
    background: #fbfbfb;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
    outline: none;
    border-color: #396761;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(57, 103, 97, 0.12);
}

.password-help {
    font-size: 12px;
    color: #6b7776;
    margin-bottom: 14px;
    padding-left: 18px;
}

.password-help li {
    margin-bottom: 3px;
}

.submit-btn {
    background: #396761;
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.submit-btn:hover:not(:disabled) {
    background: #2c5b55;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #7c948f;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
}

.errorlist {
    color: #b42318;
    font-size: 13px;
    margin: 4px 0;
    list-style: none;
    padding-left: 0;
}

.terms {
    text-align: center;
    font-size: 12px;
    margin-top: 16px;
    color: #8b9594;
}

.terms a {
    color: #396761;
    text-decoration: none;
}

.header-logo-text {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-main-content-wrapper {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

.messages-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
}

.messages-wrapper > .message-box {
    padding: 0.75rem;
    border-radius: 0.375rem;
    background-color: #DBEAFE;
    color: #1E40AF;
    margin-bottom: 0.5rem;
}

.message-box {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.message-box.success {
    background-color: #d1fae5;
    color: #065f46;
}
.message-box.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    background: white;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 23, 0.04), 0 8px 24px rgba(16, 24, 23, 0.06);
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .auth-container {
        padding: 22px;
        border-radius: 12px;
        max-width: calc(100% - 24px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── Partner entry landing (/partners/signup/) — Phase 05B ─────────────── */

.partner-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.partner-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #e2e5e4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 23, 0.03);
}

.partner-card--active {
    border-color: rgba(57, 103, 97, 0.35);
    box-shadow: 0 1px 3px rgba(16, 24, 23, 0.05), 0 0 0 1px rgba(57, 103, 97, 0.08);
}

.partner-card--disabled {
    background: #fafbfa;
    border-style: dashed;
}

.partner-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
}

.partner-card--active .partner-card__icon {
    background: rgba(57, 103, 97, 0.1);
    color: #396761;
}

.partner-card--disabled .partner-card__icon {
    background: #eef0ef;
    color: #9aa4a3;
}

.partner-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partner-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.partner-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1f1e;
}

.partner-card__desc {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7776;
    margin: 0;
}

.partner-card__status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.partner-card__status--active {
    background: rgba(57, 103, 97, 0.12);
    color: #396761;
}

.partner-card__status--soon {
    background: #eef0ef;
    color: #8b9594;
}

.partner-card .btn-partner-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 4px;
    background: #396761;
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.partner-card .btn-partner-cta:hover {
    background: #2c5b55;
    transform: translateX(1px);
}

.partner-card .btn-partner-cta i {
    font-size: 11px;
}
