/* RCM_APP_28.1.3.50.8 — canonical auth/account-entry + Create Fan styles. */
.auth-page-panel {
    padding: 16px 18px 18px;
}
.auth-page-panel .content-panel-header {
    margin-bottom: 6px;
}
.auth-scroll-list {
    /* RCM_APP_28.6.10: no inner scroll box. It was a scroll area that never had
       anything to scroll (measured on every sign-in page, 320 to 1280 wide), and
       with overscroll-behavior: contain it swallowed swipes that started on the
       bouncer card, so only the edges moved the page. The page scrolls. */
    width: 100%;
    box-sizing: border-box;
    padding: 0 4px 12px 0;
}
.auth-signin-title,
.auth-screen-title {
    margin: 0;
    color: #f8fafc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 950;
    letter-spacing: .015em;
    text-shadow: 1px 1px 0 #020617, 0 0 12px rgba(96,165,250,.18);
}
/* RCM_APP_28.6.10: one title size on every sign-in page. The selectors carry
   .content-panel-header h1 so they beat the legacy 48px page-title rule. */
.content-panel-header h1.auth-signin-title,
.content-panel-header h1.auth-screen-title,
.content-panel-header h1.fan-create-title,
.content-panel-header h1.auth-compact-title {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.1;
}
.auth-signin-form {
    width: 100%;
}
.auth-signin-page .account-form label {
    margin-top: 11px;
    margin-bottom: 5px;
    color: #dbeafe;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .015em;
}
.auth-signin-page .account-form input[type=text],
.auth-signin-page .account-form input[type=password] {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 650;
}
.auth-message {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
}
.auth-message-error {
    background: #3b1519;
    color: #ffb4bd;
    border: 1px solid #7f1d1d;
}
.auth-email-check-actions {
    margin-top: 9px;
}
.auth-signin-page .account-form input[type=email] {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 650;
}
.auth-verify-status{min-height:1.4em;margin-top:12px;color:#cbd5e1;font-size:13px;font-weight:750}
.auth-continue-button {
    margin-top: 0;
}
/* RCM_APP_28.8.1: the second way in, right under Sign In / Continue. */
.auth-create-account-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    margin-top: 10px;
    background: #15803d;
    border-color: #4ade80;
    color: #fff;
    text-decoration: none;
}
.auth-create-account-button:hover,
.auth-create-account-button:active {
    background: #16a34a;
    color: #fff;
}
.auth-recognized-user {
    margin: 4px 0 16px;
    text-align: center;
}
.auth-hello {
    color: #ffad33;
    font-size: clamp(26px, 6vw, 36px);
    font-weight: 950;
    line-height: 1.05;
    text-shadow: 1px 1px 0 #341d00, 2px 2px 0 #05080e, 0 0 12px rgba(255,173,51,.24);
}
#hello-username {
    color: #ffd35c;
}
.auth-rock-greeting {
    margin: 6px 0 8px;
    color: #7ab8ff;
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 900;
    letter-spacing: .02em;
    text-shadow: 1px 1px 0 #0b1a2d, 2px 2px 0 #05080e, 0 0 10px rgba(122,184,255,.22);
}
.auth-account-identity {
    margin: 7px 0 5px;
    color: #b9c8da;
    font-size: 14px;
    font-weight: 750;
    overflow-wrap: anywhere;
}
.auth-switch-user {
    color: #8ea6c4;
    text-decoration: underline;
    font-size: 12px;
}
.auth-password-callout {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #805514;
    border-radius: 8px;
    background: #261b0b;
    color: #ffb43b;
    font-weight: 800;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
}
.auth-show-password-label {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin-top: 12px !important;
    font-weight: 700 !important;
}
.auth-show-password-label input {
    width: auto;
    margin: 0;
}
.auth-password-actions {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 8px;
    margin-top: 9px;
}
.auth-password-actions .submit-button,
.auth-password-actions .auth-lost-password-button {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 8px 9px;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.05;
}
.auth-lost-password-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4f8ee8;
    border-radius: 8px;
    background: #1f5faa;
    color: #fff;
    text-align: center;
    text-decoration: none;
}
.auth-bottom-copy {
    margin-top: 20px;
    padding: 12px 2px 4px;
    color: #94a3b8;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 12.5px;
    line-height: 1.4;
}
.auth-reset-personal {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #805514;
    border-radius: 9px;
    background: #261b0b;
    color: #ffbd52;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}
.auth-reset-personal strong { color: #ffd35c; }
.auth-reset-intro {
    color: #c9d4e3;
    line-height: 1.45;
    font-size: 14px;
}
.auth-reset-form label,
.auth-reset-form input,
.auth-reset-form button {
    font-size: 15px;
}
.auth-show-password-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px !important;
    color: #d7e4f5;
    font-size: 14px !important;
}
.auth-show-password-row input { width: auto; }
.auth-reset-submit { width: 100%; min-height: 46px; }
.auth-return-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-decoration: none;
}

@media (max-width: 460px) {
    .auth-page-panel { padding: 13px 13px 16px; }
    .auth-password-actions { gap: 6px; }
    .auth-password-actions .submit-button,
    .auth-password-actions .auth-lost-password-button { font-size: 12.5px; padding-left: 6px; padding-right: 6px; }
    .auth-bottom-copy { font-size: 12px; }
}

.content-panel-header h1.fan-create-title {
    margin: 0;
}

.fan-create-form {
    max-width: 620px;
}

.fan-create-form label {
    margin-top: 10px;
}


.fan-username-field-wrap{position:relative}
.fan-username-field-wrap #username{width:100%;padding-right:78px}
.fan-name-chevrons{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:flex;gap:4px;align-items:center}
.fan-name-chevron{width:31px;height:31px;padding:0;border:1px solid #8a6a12;border-radius:7px;background:#facc15;color:#111827;font-size:25px;font-weight:1000;line-height:27px;cursor:pointer}
.fan-name-chevron:hover:not(:disabled){background:#fde047}
.fan-name-chevron:disabled{background:#57534e;color:#a8a29e;border-color:#57534e;cursor:default;opacity:.72}

/* Generated username selection: high-contrast yellow with black text. */
#username::selection {
    background: #ffd400;
    color: #000;
}

#username::-moz-selection {
    background: #ffd400;
    color: #000;
}

.fan-email-status {
    margin: 5px 0 2px;
    color: #ff6262;
    font-size: 0.86rem;
    font-weight: 800;
}

.fan-inline-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #ff8a8a;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.fan-help-note {
    margin-top: 5px;
    color: #aeb7c1;
    font-size: 0.82rem;
    line-height: 1.35;
}

.fan-field-with-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 7px;
    align-items: center;
}

.fan-field-with-actions input {
    min-width: 0;
}

.fan-field-with-actions:has(#password) {
    grid-template-columns: minmax(0, 1fr) auto;
}

.fan-name-action-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    margin-top: 6px;
}

.fan-name-action-row .fan-small-action {
    width: auto;
    min-width: 112px;
}

.fan-name-inline-help {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.22;
}

.fan-small-action {
    min-height: 38px;
    padding: 7px 10px;
    white-space: nowrap;
    font-size: 0.82rem;
}

.fan-password-requirements {
    display: flex;
    gap: 8px 12px;
    flex-wrap: wrap;
    margin-top: 7px;
    color: #9da7b1;
    font-size: 0.76rem;
}

.fan-password-requirements .ok {
    color: #8bdc9b;
}

.fan-password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.fan-password-label-row > label:first-child {
    margin: 0 !important;
}

.fan-show-password {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    color: #cbd5e1 !important;
    font-size: 0.78rem;
    font-weight: 700 !important;
    white-space: nowrap;
}

.fan-show-password input {
    width: auto;
    margin: 0;
}

.fan-create-submit {
    margin-top: 12px;
}

.fan-create-submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fan-create-submit-row #submit-button {
    flex: 0 0 auto;
    min-width: 130px;
}

.fan-create-submit-row #submit-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.fan-terms-consent {
    margin: 0 !important;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #c7d0dc;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 700 !important;
    cursor: pointer;
}

.fan-terms-consent input {
    width: 19px;
    height: 19px;
    margin: 1px 0 0 0;
    flex: 0 0 auto;
}

.fan-consent-stack {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fan-create-legal-links {
    margin-top: 6px;
    padding-left: 26px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9fb0c4;
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 800;
}

.fan-create-legal-links a {
    color: #93c5fd;
    text-decoration: underline;
    cursor: pointer;
}


@media (max-width: 620px) {
    .fan-field-with-actions,
    .fan-field-with-actions:has(#password) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .fan-name-action-row {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 7px;
    }

    .fan-name-action-row .fan-small-action {
        min-width: 0;
        padding-left: 6px;
        padding-right: 6px;
        font-size: 0.72rem;
    }

    .fan-name-inline-help {
        font-size: 0.68rem;
        line-height: 1.18;
    }

    .fan-create-submit-row {
        align-items: flex-start;
        gap: 9px;
    }

    .fan-create-submit-row #submit-button {
        min-width: 112px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .fan-terms-consent,
    .fan-create-legal-links {
        font-size: 0.84rem;
    }

    .fan-show-password {
        font-size: 0.72rem;
    }
}


/* Post-registration verification dialog — canonical auth styles. */
.auth-compact-title {
    margin: 0;
    font-size: clamp(1.35rem, 3.8vw, 1.85rem);
    line-height: 1.1;
}
.signup-verify-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.84);
}
.signup-verify-card {
    width: min(560px, 94vw);
    max-height: 88vh;
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid rgba(255, 153, 0, 0.72);
    border-radius: 14px;
    padding: 22px;
    background: #111820;
    color: #f4f6f8;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.58);
}
.signup-verify-card h2 {
    margin: 0 0 10px;
    color: #ff9b25;
    font-size: 1.35rem;
}
.signup-verify-email {
    overflow-wrap: anywhere;
    color: #ff7676;
    font-weight: 800;
}
.signup-verify-subject {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 153, 0, 0.10);
    font-weight: 800;
}
.signup-verify-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.signup-verify-actions button,
.signup-verify-actions a {
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid #ff9b25;
    border-radius: 8px;
    padding: 9px 14px;
    background: #202a35;
    color: #f4f6f8;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.signup-verify-actions button:disabled {
    opacity: 0.45;
    cursor: wait;
}
#signup-resend-verification:not(:disabled) {
    background: #ff9b25;
    color: #141414;
}
#signup-continue {
    background: #234f9b;
    border-color: #4f82d9;
}
.signup-countdown,
.signup-result {
    margin-top: 12px;
    color: #b8c0c8;
    font-size: 0.92rem;
}
.signup-result {
    min-height: 1.35em;
    font-weight: 700;
}

/* RCM_APP_28.6.7: the bouncer for a user name that is not on the list. */
.auth-bouncer {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    background: #0b1220;
    text-align: center;
}
.auth-bouncer-guard {
    width: min(118px, 40%);
    height: auto;
    border-radius: 10px;
}
.auth-bouncer-line {
    margin: 6px 0 4px;
    color: #f59e0b;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
}
.auth-bouncer-copy {
    color: #e2e8f0;
    font-size: .88rem;
    line-height: 1.35;
}
.auth-bouncer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

/* RCM_APP_28.6.13: a single button (Lost my password) sits centred, half width. */
.auth-bouncer-actions > :only-child {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 50%;
}
.auth-bouncer-button {
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid #64748b;
    border-radius: 9px;
    padding: 10px 12px;
    background: #1e293b;
    color: #fff;
    font: inherit;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.auth-bouncer-button.is-primary {
    border-color: #f59e0b;
    background: #a84b00;
}
