.form-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #dde5ea;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 41, 51, .06);
}
.form-container input, .form-container button {
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.form-container button {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}
.form-container button:hover {
    opacity: 0.9;
}
.form-container a {
    color: #007bff;
    text-decoration: none;
}
.form-container a:hover {
    text-decoration: underline;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.google-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #20212B !important;
    background: #ffffff !important;
    border: 1px solid #d0d5dd !important;
}
.google-auth-btn:hover {
    background: #f8fafc !important;
}
.terms-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #344054;
    font-size: 14px;
    line-height: 1.4;
}
.terms-consent input {
    width: auto;
    margin-top: 3px;
}
.club-login-choice {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}
.club-login-choice[hidden] {
    display: none;
}
.club-login-choice h2 {
    margin: 0;
    color: #111820;
    font-size: 21px;
    line-height: 1.25;
}
.club-login-choice > p {
    margin: 0;
    color: #667085;
    line-height: 1.45;
}
.club-login-choice .auto-eyebrow {
    color: #1479d4;
}
.club-login-choice-actions {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}
.form-container .club-login-option {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 70px;
    padding: 12px;
    color: #1f2933;
    text-align: left;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
}
.form-container .club-login-option:hover,
.form-container .club-login-option:focus {
    color: #0b65b1;
    background: #eff6ff;
    border-color: #1479d4;
    opacity: 1;
}
.form-container .club-login-option-primary {
    color: #ffffff;
    background: #1479d4;
    border-color: #1479d4;
}
.form-container .club-login-option-primary:hover,
.form-container .club-login-option-primary:focus {
    color: #ffffff;
    background: #0b65b1;
}
.club-login-option > i:first-child {
    font-size: 24px;
    text-align: center;
}
.club-login-option span,
.club-login-option strong,
.club-login-option small {
    display: block;
}
.club-login-option small {
    margin-top: 3px;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    opacity: .82;
}
.auth-link-button {
    align-self: flex-start;
    width: auto;
    padding: 0 !important;
    color: #4a4c70 !important;
    background: transparent !important;
    border: 0 !important;
    font-weight: 700;
    text-decoration: underline;
}
.password-reset-panel {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
}
.password-reset-panel h3 {
    margin: 0;
    font-size: 20px;
}
.password-reset-panel p {
    margin: 0;
    color: #475467;
    font-size: 14px;
}
.password-reset-panel label {
    margin: 0;
    color: #20212B;
    font-weight: 700;
}
.password-reset-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.google-recovery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: #20212B !important;
    background: #ffffff !important;
    border: 1px solid #d0d5dd !important;
}
html[data-contrast="high"] .password-reset-panel,
html[data-contrast="high"] .password-reset-panel * {
    color: #000000 !important;
    background: #ffffff !important;
}
html[data-contrast="high"] .google-recovery-btn,
html[data-contrast="high"] #sendResetBtn {
    color: #000000 !important;
    background: #ffff00 !important;
    border: 2px solid #000000 !important;
}

/* Contrast contract for light controls inside the dark login experience.
   Global theme rules style text elements independently, so each descendant
   needs an explicit readable colour rather than relying on inheritance. */
html[data-theme] .form-container .google-auth-btn,
html[data-theme] .form-container .google-auth-btn :is(i, span, strong, small),
html[data-theme] .form-container .google-recovery-btn,
html[data-theme] .form-container .google-recovery-btn :is(i, span, strong, small) {
    color: #111827 !important;
}

html[data-theme] .form-container .google-auth-btn,
html[data-theme] .form-container .google-recovery-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

html[data-theme] .form-container .google-auth-btn:hover,
html[data-theme] .form-container .google-auth-btn:focus-visible,
html[data-theme] .form-container .google-recovery-btn:hover,
html[data-theme] .form-container .google-recovery-btn:focus-visible {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-theme] .form-container .club-login-option:not(.club-login-option-primary),
html[data-theme] .form-container .club-login-option:not(.club-login-option-primary) :is(i, span, strong) {
    color: #172033 !important;
}

html[data-theme] .form-container .club-login-option:not(.club-login-option-primary) small {
    color: #526170 !important;
    opacity: 1;
}

html[data-theme] .form-container .club-login-option:not(.club-login-option-primary) {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

html[data-theme] .form-container .club-login-option:not(.club-login-option-primary):hover,
html[data-theme] .form-container .club-login-option:not(.club-login-option-primary):focus-visible {
    background: #eff6ff !important;
    border-color: #1479d4 !important;
}

html[data-theme] .form-container .club-login-option-primary,
html[data-theme] .form-container .club-login-option-primary :is(i, span, strong, small) {
    color: #ffffff !important;
}

html[data-theme] .form-container .club-login-option-primary small {
    color: #eaf4ff !important;
    opacity: 1;
}

html[data-theme] .form-container input:not([type="checkbox"]):not([type="radio"]) {
    caret-color: currentColor;
}

html[data-theme="light"] .form-container input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] .form-container input:not([type="checkbox"]):not([type="radio"])::placeholder {
    color: #344054 !important;
}
