/**
 * Thera-UP public authentication.
 *
 * The active WordPress theme owns the header and footer. This isolated sheet
 * owns only the public authentication area and deliberately does not depend on
 * the large therapist-space stylesheet. Login and registration share the same
 * vertical composition: one concise introduction card, then one full-width
 * authentication card.
 */
.theraboost-public-auth,
.theraboost-public-auth * {
    box-sizing: border-box;
}

.theraboost-public-auth {
    --tb-auth-violet: var(--tu-violet, #6656f5);
    --tb-auth-violet-dark: var(--tu-violet-dark, #4d3ed1);
    --tb-auth-violet-soft: var(--tu-violet-soft, #efedff);
    --tb-auth-orange: var(--tu-orange, #ff7a45);
    --tb-auth-ink: var(--tu-ink, #111b2d);
    --tb-auth-text: var(--tu-text, #566278);
    --tb-auth-line: var(--tu-line, #dfe5ef);
    --tb-auth-white: #fff;
    --tb-auth-shadow: 0 16px 38px rgba(35, 39, 78, .09);
    width: 100%;
    padding: clamp(24px, 3.2vw, 38px) 16px clamp(34px, 4.8vw, 54px);
    background:
        radial-gradient(circle at 8% 4%, rgba(102, 86, 245, .12), transparent 30%),
        radial-gradient(circle at 92% 7%, rgba(255, 122, 69, .09), transparent 28%),
        linear-gradient(180deg, #fbfbff 0%, #f6f8fd 100%);
}

.theraboost-public-auth__container {
    width: min(100%, 560px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.theraboost-public-auth.is-login .theraboost-public-auth__container {
    width: min(100%, 520px);
}

.theraboost-public-auth.is-register .theraboost-public-auth__container {
    width: min(100%, 600px);
}

/* Introductory block: concise on purpose, so the form remains the focal point. */
.theraboost-public-auth__intro {
    width: 100%;
    padding: clamp(16px, 2.4vw, 22px);
    border: 1px solid rgba(223, 229, 239, .96);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 22px rgba(35, 39, 78, .045);
    text-align: center;
}

.theraboost-public-auth__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--tb-auth-violet-soft);
    color: var(--tb-auth-violet-dark);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .01em;
}

.theraboost-public-auth__intro h1 {
    max-width: 500px;
    margin: 10px auto 6px;
    color: var(--tb-auth-ink);
    font-size: clamp(19px, 2.4vw, 23px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.theraboost-public-auth__intro p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--tb-auth-text);
    font-size: 13.5px;
    line-height: 1.45;
}

.theraboost-public-auth__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--tb-auth-violet-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.theraboost-public-auth__back:hover {
    color: var(--tb-auth-violet);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/*
 * Hard reset for the shortcode output. These declarations intentionally use
 * !important on dimensions because legacy portal CSS historically constrained
 * .theraboost-space-login and .theraboost-login-card to narrow fixed widths.
 */
.theraboost-public-auth__content,
.theraboost-public-auth__content > *,
.theraboost-public-auth__content .wp-block-shortcode,
.theraboost-public-auth__content .theraboost-space,
.theraboost-public-auth__content .theraboost-space-login,
.theraboost-public-auth__content .theraboost-auth-shell,
.theraboost-public-auth__content .theraboost-auth-register-shell {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.theraboost-public-auth__content .theraboost-space-card,
.theraboost-public-auth__content .theraboost-login-card,
.theraboost-public-auth__content .theraboost-register-card {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: clamp(24px, 3.2vw, 30px) !important;
    border: 1px solid rgba(223, 229, 239, .98) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: var(--tb-auth-shadow) !important;
}

.theraboost-public-auth__content .theraboost-space-brand {
    width: 100%;
    margin: 0 0 14px !important;
    text-align: left;
}

.theraboost-public-auth__content .theraboost-space-pill {
    display: none !important;
}

.theraboost-public-auth__content .theraboost-space-brand h1 {
    max-width: none !important;
    margin: 0 0 8px !important;
    color: var(--tb-auth-ink) !important;
    font-size: clamp(24px, 3vw, 28px) !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em !important;
}

.theraboost-public-auth__content .theraboost-space-brand p {
    max-width: 620px;
    margin: 0 !important;
    color: var(--tb-auth-text) !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
}

.theraboost-public-auth__content form,
.theraboost-public-auth__content .login-form,
.theraboost-public-auth__content .theraboost-auth-form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.theraboost-registration-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.theraboost-public-auth__content .theraboost-turnstile-wrap {
    display: grid;
    gap: 7px;
    width: 100%;
    margin: 18px 0 0;
}

.theraboost-public-auth__content .theraboost-turnstile-wrap small {
    color: var(--tb-auth-text);
    font-size: 12px;
    line-height: 1.4;
}

.theraboost-public-auth__content form p,
.theraboost-public-auth__content .login-username,
.theraboost-public-auth__content .login-password,
.theraboost-public-auth__content .login-remember,
.theraboost-public-auth__content .login-submit {
    width: 100%;
    margin: 0 0 14px !important;
}

.theraboost-public-auth__content form label,
.theraboost-public-auth__content .theraboost-auth-form label > span {
    display: block;
    margin: 0 0 6px;
    color: var(--tb-auth-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.theraboost-public-auth__content input[type="text"],
.theraboost-public-auth__content input[type="email"],
.theraboost-public-auth__content input[type="password"],
.theraboost-public-auth__content select,
.theraboost-public-auth__content textarea,
.theraboost-public-auth__content .input {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    border: 1px solid var(--tb-auth-line) !important;
    border-radius: 12px !important;
    background: #f7f9fe !important;
    color: var(--tb-auth-ink) !important;
    font: inherit !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
}

.theraboost-public-auth__content textarea {
    min-height: 104px !important;
    resize: vertical;
}

.theraboost-public-auth__content input:focus,
.theraboost-public-auth__content select:focus,
.theraboost-public-auth__content textarea:focus {
    outline: 3px solid rgba(102, 86, 245, .14) !important;
    border-color: var(--tb-auth-violet) !important;
    background: #fff !important;
}

.theraboost-public-auth__content .login-remember label,
.theraboost-public-auth__content .theraboost-auth-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    color: var(--tb-auth-text) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.theraboost-public-auth__content input[type="checkbox"] {
    flex: 0 0 auto;
    width: 19px !important;
    height: 19px !important;
    min-height: 0 !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    accent-color: var(--tb-auth-violet);
}

.theraboost-public-auth__content .login-submit {
    margin-top: 17px !important;
    margin-bottom: 0 !important;
}

.theraboost-public-auth__content input[type="submit"],
.theraboost-public-auth__content .button-primary,
.theraboost-public-auth__content .theraboost-space-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--tb-auth-violet), var(--tb-auth-violet-dark)) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 13px 25px rgba(77, 62, 209, .22) !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

.theraboost-public-auth__content input[type="submit"]:hover,
.theraboost-public-auth__content .button-primary:hover,
.theraboost-public-auth__content .theraboost-space-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(77, 62, 209, .27) !important;
}

.theraboost-public-auth__content .theraboost-space-button-secondary {
    border: 1px solid var(--tb-auth-line) !important;
    background: #fff !important;
    color: var(--tb-auth-violet-dark) !important;
    box-shadow: none !important;
}

.theraboost-public-auth__content .theraboost-auth-links {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    width: 100%;
    margin: 18px 0 0 !important;
    padding: 16px 0 0 !important;
    border-top: 1px solid var(--tb-auth-line);
    font-size: 13px !important;
}

.theraboost-public-auth__content .theraboost-auth-links span[aria-hidden="true"] {
    display: none;
}

.theraboost-public-auth__content .theraboost-auth-links a {
    color: var(--tb-auth-violet-dark) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.theraboost-public-auth__content .theraboost-auth-links a:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.theraboost-public-auth__content .theraboost-auth-resend-form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.theraboost-public-auth__content .theraboost-auth-link-button {
    display: inline !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--tb-auth-violet-dark) !important;
    font: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    appearance: none !important;
}

.theraboost-public-auth__content .theraboost-auth-link-button:hover,
.theraboost-public-auth__content .theraboost-auth-link-button:focus-visible {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Registration remains deliberately linear and easy to scan. */
.theraboost-public-auth__content .theraboost-space-panel {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theraboost-public-auth__content .theraboost-space-panel h2 {
    margin: 0 0 8px !important;
    color: var(--tb-auth-ink) !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
}

.theraboost-public-auth__content .theraboost-auth-panel-intro {
    max-width: 620px;
    margin: 0 0 18px !important;
    color: var(--tb-auth-text) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.theraboost-public-auth__content .theraboost-space-form-grid,
.theraboost-public-auth__content .theraboost-space-form-grid-2 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
}

.theraboost-public-auth__content .theraboost-space-form-grid label {
    min-width: 0;
    margin: 0 !important;
}

.theraboost-public-auth__content .theraboost-space-form-grid label > span {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.theraboost-public-auth__content .theraboost-space-form-grid em {
    padding: 2px 7px;
    border-radius: 999px;
    background: #edf8f3;
    color: #20765a;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.theraboost-public-auth__content .theraboost-space-form-grid small {
    display: block;
    margin-top: 6px;
    color: var(--tb-auth-text);
    font-size: 12px;
}

.theraboost-public-auth__content .theraboost-auth-check {
    margin-top: 17px !important;
    padding: 13px 14px !important;
    border: 1px solid #dce7e2 !important;
    border-radius: 12px !important;
    background: #f7fbf9 !important;
}

.theraboost-public-auth__content .theraboost-space-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px !important;
    width: 100%;
    margin: 18px 0 0 !important;
}

.theraboost-public-auth__content .theraboost-space-notice {
    width: 100%;
    margin: 0 0 20px !important;
    padding: 13px 15px;
    border: 1px solid var(--tb-auth-line);
    border-radius: 12px;
    background: #f7f9fe;
    color: var(--tb-auth-text);
    font-size: 13px;
    line-height: 1.5;
}

.theraboost-public-auth__content .theraboost-space-notice-error {
    border-color: #f1c7c7;
    background: #fff4f4;
    color: #922f2f;
}

.theraboost-public-auth__content .theraboost-space-notice-success {
    border-color: #cce5d9;
    background: #f3fbf7;
    color: #176b50;
}

@media (max-width: 760px) {
    .theraboost-public-auth {
        padding: 22px 12px 36px;
    }

    .theraboost-public-auth__container {
        gap: 12px;
    }

    .theraboost-public-auth__intro,
    .theraboost-public-auth__content .theraboost-space-card,
    .theraboost-public-auth__content .theraboost-login-card,
    .theraboost-public-auth__content .theraboost-register-card {
        border-radius: 16px !important;
    }

    .theraboost-public-auth__intro {
        padding: 16px 15px;
    }

    .theraboost-public-auth__content .theraboost-space-card,
    .theraboost-public-auth__content .theraboost-login-card,
    .theraboost-public-auth__content .theraboost-register-card {
        padding: 22px 18px !important;
    }
}
