/* Mendify — Auth pages (sign in, register, password reset) */

.auth-body {
    background: linear-gradient(180deg, #faf8fc 0%, #fff 40%, var(--sage50) 100%);
    min-height: 100vh;
}

.auth-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 217, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.auth-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-header__help {
    color: var(--lav800);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
}

.auth-header__help:hover {
    background: var(--lav100);
}

.auth-main {
    padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 4rem);
}

.auth-main--public {
    padding-top: clamp(1.25rem, 3vw, 2.25rem);
}

.auth-body--public-nav .auth-shell {
    width: min(1120px, calc(100% - 2rem));
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    width: min(1120px, 92vw);
    margin: 0 auto;
    align-items: stretch;
}

.auth-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(155deg, var(--lav900) 0%, #4a3568 45%, var(--lav800) 100%);
    color: #fff;
    min-height: 100%;
}

.auth-panel__pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(196, 217, 192, 0.14) 0%, transparent 40%);
    pointer-events: none;
}

.auth-panel__content {
    position: relative;
    z-index: 1;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.auth-panel__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.auth-panel h1 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 400;
    line-height: 1.15;
}

.auth-panel__lead {
    margin: 0 0 1.5rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
    max-width: 34rem;
}

.auth-panel__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.auth-panel__trust li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.auth-panel__trust strong {
    color: #fff;
    font-weight: 700;
}

.auth-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.auth-panel__icon svg {
    width: 1rem;
    height: 1rem;
}

.auth-form-panel {
    display: flex;
    align-items: center;
}

.auth-card {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(226, 217, 240, 0.95);
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 16px 40px rgba(61, 47, 82, 0.08);
}

.auth-card__head h1,
.auth-card__head h2 {
    margin: 0 0 0.45rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--lav900);
}

.auth-notice {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-notice strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.98rem;
}

.auth-notice p {
    margin: 0;
}

.auth-notice--success {
    background: rgba(132, 161, 141, 0.18);
    border: 1px solid rgba(132, 161, 141, 0.35);
    color: #2f4a38;
}

.auth-notice--error {
    background: rgba(228, 165, 198, 0.18);
    border: 1px solid rgba(228, 165, 198, 0.35);
    color: #6b3048;
}

.auth-card__head p {
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #6b6078;
}

.auth-form {
    display: grid;
    gap: 0.95rem;
}

.auth-form__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.auth-form__label-row label {
    margin-bottom: 0;
}

.auth-form__inline-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lav800);
    text-decoration: none;
}

.auth-form__inline-link:hover {
    text-decoration: underline;
}

.auth-form .form-group label {
    font-weight: 600;
    color: var(--lav900);
}

.auth-form .form-group input {
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    border-color: rgba(226, 217, 240, 0.95);
    font-size: 1rem;
}

.auth-form .form-group input:focus {
    outline: 2px solid rgba(91, 66, 117, 0.25);
    border-color: var(--lav800);
}

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

.auth-password-field input {
    width: 100%;
    padding-right: 2.85rem;
    box-sizing: border-box;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #7a7088;
    cursor: pointer;
    touch-action: manipulation;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--lav800);
    background: rgba(97, 70, 125, 0.08);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid rgba(91, 66, 117, 0.35);
    outline-offset: 1px;
}

.auth-password-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-toggle__show {
    display: none;
}

.auth-password-toggle[aria-pressed="false"] .auth-password-toggle__hide,
.auth-password-toggle:not([aria-pressed="true"]) .auth-password-toggle__hide {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-toggle__hide {
    display: block;
}

.auth-form__submit {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-top: 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5f8f68 0%, var(--md-sage) 100%);
    box-shadow: 0 10px 24px rgba(95, 143, 104, 0.25);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #8a8098;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(226, 217, 240, 0.95);
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 217, 240, 0.95);
    background: #fff;
    color: var(--lav900);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.auth-google-btn:hover {
    background: var(--lav100);
    box-shadow: 0 6px 18px rgba(61, 47, 82, 0.08);
}

.auth-provider-prompt {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 217, 240, 0.95);
    background: linear-gradient(180deg, rgba(248, 245, 252, 0.95), #fff);
}

/* Author .btn/.auth-google-btn display rules override the UA [hidden] stylesheet. */
.auth-provider-prompt[hidden],
.auth-provider-hint[hidden],
[data-auth-entry][hidden],
[data-auth-credentials][hidden],
.auth-card [hidden],
.auth-google-btn[hidden],
.auth-provider-prompt__btn[hidden],
.auth-provider-prompt__email[hidden],
.auth-field-error[hidden],
.auth-error-summary[hidden] {
    display: none !important;
}

.auth-provider-prompt__copy {
    margin: 0;
    color: var(--lav900);
    font-size: 0.95rem;
    line-height: 1.45;
}

.auth-provider-prompt__email {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #5b4a6e;
    word-break: break-word;
}

.auth-provider-prompt__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.85rem;
    box-sizing: border-box;
}

.auth-provider-prompt .auth-google-btn {
    min-height: 2.85rem;
}

@media (max-width: 540px) {
    .auth-provider-prompt {
        padding: 0.9rem 0.85rem;
        gap: 0.75rem;
    }

    .auth-provider-prompt__copy {
        font-size: 0.9rem;
    }
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"],
.auth-google-btn,
.auth-form__submit,
.auth-provider-prompt__btn {
    touch-action: manipulation;
}

.auth-provider-hint {
    margin: 0 0 0.85rem;
    padding: 0.8rem 0.95rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(226, 217, 240, 0.95);
    background: rgba(248, 245, 252, 0.9);
}

.auth-provider-hint p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #5b4a6e;
}

.auth-card__switch {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.92rem;
    color: #6b6078;
}

.auth-card__switch a {
    color: var(--lav800);
    font-weight: 700;
    text-decoration: none;
}

.auth-card__switch a:hover {
    text-decoration: underline;
}

.auth-card__staff {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(226, 217, 240, 0.85);
    text-align: center;
}

.auth-card__staff p {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8098;
}

.auth-card__staff-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.88rem;
}

.auth-card__staff-links a {
    color: var(--lav800);
    text-decoration: none;
    font-weight: 600;
}

.auth-card__staff-links a:hover {
    text-decoration: underline;
}

.auth-card__staff-links span {
    color: #c4b8d4;
}

.auth-panel h1 em {
    font-style: normal;
    color: rgba(196, 217, 192, 0.95);
}

.auth-shell--register,
.auth-shell--verify {
    width: min(1180px, 92vw);
}

.auth-google-wrap {
    display: grid;
    gap: 0.55rem;
}

.auth-google-legal {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #7a7088;
    text-align: center;
}

.auth-google-legal a {
    color: var(--lav800, #61467d);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.auth-email-check-status {
    margin: 0.45rem 0 0;
    font-size: 0.86rem;
    line-height: 1.4;
    color: #6b6178;
}

.auth-email-check-status.is-loading {
    color: var(--lav800, #61467d);
}

.auth-email-check-status.is-error {
    color: #6b3048;
}

.auth-email-check-status.is-ready {
    color: #2f4a38;
}

@media (prefers-reduced-motion: reduce) {
    .auth-otp-input,
    .auth-form__submit,
    .auth-password-toggle,
    .auth-google-btn {
        transition: none;
    }
}

.auth-card--register {
    max-width: none;
}

.auth-form--register {
    gap: 1rem;
}

.auth-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.auth-whatsapp-field {
    width: 100%;
    min-width: 0;
}

.auth-whatsapp-field > .auth-contact-row {
    margin-top: 0;
}

.auth-contact-row {
    display: grid !important;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.auth-contact-row .ccp-field--compact,
.auth-contact-row__code {
    flex: none;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.auth-contact-row__phone {
    min-width: 0;
    width: 100%;
}

.auth-contact-row__phone input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 3.125rem;
}

.auth-card .auth-contact-row .ccp-field--compact .ccp-input {
    padding: 0.72rem 1.85rem 0.72rem 0.7rem;
    border-radius: 12px;
    border-color: rgba(226, 217, 240, 0.95);
    font-size: 1rem;
    box-sizing: border-box;
    min-height: 3.125rem;
}

.auth-card .auth-contact-row .ccp-field--compact .ccp-input:focus {
    outline: 2px solid rgba(91, 66, 117, 0.25);
    border-color: var(--lav800);
}

.auth-card .auth-contact-row .ccp-field--compact .auth-field-error {
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 0.2rem);
    margin: 0;
    white-space: nowrap;
}

.auth-form .form-group {
    margin: 0;
}

.auth-form .auth-form__submit {
    margin-top: 0.15rem;
}

.auth-optional {
    font-weight: 500;
    color: #8a8098;
    font-size: 0.82rem;
}

.auth-field-hint {
    margin: -0.15rem 0 0.35rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #8a8098;
}

.auth-error-summary {
    margin: 0 0 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid #f0c9c9;
    background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
    color: #8f2f2f;
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-error-summary__title {
    margin: 0;
    font-weight: 700;
}

.auth-error-summary ul {
    margin: 0.45rem 0 0;
    padding-left: 1.1rem;
}

.auth-error-summary li + li {
    margin-top: 0.2rem;
}

.auth-field-error {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #b42318;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.auth-field-error::before {
    content: '';
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.12rem;
    flex-shrink: 0;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-field-error[hidden] {
    display: none !important;
}

.auth-field-error--consent {
    margin: 0 0 0.65rem;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #e8a8a8;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(220, 74, 74, 0.08);
}

.auth-password-rules {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 217, 240, 0.95);
    background: #fcfbfe;
    display: grid;
    gap: 0.35rem;
}

.auth-password-rules[hidden] {
    display: none !important;
}

.auth-password-rules__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #8a8098;
    transition: color 0.15s ease;
}

.auth-password-rules__item::before {
    content: '';
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 1.5px solid #cfc5dc;
    flex-shrink: 0;
}

.auth-password-rules__item.is-met {
    color: #2f6b3f;
}

.auth-password-rules__item.is-met::before {
    border-color: #5aa06a;
    background: #5aa06a;
    box-shadow: inset 0 0 0 2px #fff;
}

.auth-password-rules__item.is-unmet {
    color: #9a4f4f;
}

.auth-form__submit.is-loading {
    opacity: 0.82;
    cursor: wait;
    pointer-events: none;
}

.auth-form__submit:disabled {
    cursor: not-allowed;
}

.auth-consent {
    margin: 0.35rem 0 0;
    padding: 1rem 1rem 0.85rem;
    border: 1px solid rgba(226, 217, 240, 0.95);
    border-radius: 16px;
    background: var(--lav100);
}

.auth-consent__legend {
    padding: 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lav800);
}

.auth-consent__item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #5a5068;
}

.auth-consent__item label {
    cursor: pointer;
}

.auth-consent__item input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--lav800);
    cursor: pointer;
}

.auth-consent.has-error {
    border-color: #e8b4b4;
    background: #fff8f8;
}

.auth-consent__item a {
    color: var(--lav800);
    font-weight: 600;
    text-decoration: none;
}

.auth-consent__item a:hover {
    text-decoration: underline;
}

.auth-consent__item em {
    font-style: normal;
    color: #8a8098;
}

.auth-consent__item--optional {
    color: #7a7088;
}

.auth-google-btn--top {
    margin-bottom: 0;
}

.auth-card__privacy-note {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 217, 240, 0.85);
    font-size: 0.78rem;
    line-height: 1.55;
    color: #8a8098;
    text-align: center;
}

/* Therapist portal sign-in */

.auth-body--therapist {
    background: linear-gradient(180deg, #f5faf4 0%, #fff 42%, var(--lav100) 100%);
}

.auth-panel--therapist {
    background: linear-gradient(155deg, var(--sage900) 0%, #3d5a42 42%, var(--md-sage) 100%);
}

.auth-panel--therapist .auth-panel__pattern {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.1) 0%, transparent 44%),
        radial-gradient(circle at 82% 78%, rgba(196, 217, 192, 0.18) 0%, transparent 42%);
}

.auth-panel--therapist h1 em {
    color: rgba(238, 245, 236, 0.95);
}

.auth-card__badge {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--sage100);
    border: 1px solid var(--sage300);
    color: var(--sage900);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-card__help-note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #6b6078;
    text-align: center;
}

.auth-card__help-note a {
    color: var(--lav800);
    font-weight: 600;
    text-decoration: none;
}

.auth-card__help-note a:hover {
    text-decoration: underline;
}

.auth-shell--therapist .auth-form__submit {
    background: linear-gradient(135deg, var(--lav800) 0%, var(--lav900) 100%);
    box-shadow: 0 10px 24px rgba(61, 47, 82, 0.22);
}

/* Admin console sign-in */

.auth-body--admin {
    background: linear-gradient(180deg, #f8f5fc 0%, #fff 42%, var(--lav100) 100%);
}

.auth-panel--admin {
    background: linear-gradient(155deg, #2a2038 0%, var(--lav900) 45%, var(--lav800) 100%);
}

.auth-panel--admin .auth-panel__pattern {
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.11) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(228, 165, 198, 0.12) 0%, transparent 40%);
}

.auth-panel--admin h1 em {
    color: rgba(228, 165, 198, 0.92);
}

.auth-card__badge--admin {
    background: var(--lav100);
    border-color: var(--lav300);
    color: var(--lav900);
}

.auth-shell--admin .auth-form__submit {
    background: linear-gradient(135deg, var(--md-purple) 0%, var(--lav900) 100%);
    box-shadow: 0 10px 24px rgba(97, 70, 125, 0.28);
}

.auth-footer {
    border-top: 1px solid rgba(226, 217, 240, 0.85);
    background: rgba(255, 255, 255, 0.85);
    padding: 1.25rem 0 1.5rem;
}

.auth-footer__inner {
    text-align: center;
}

.auth-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    margin-bottom: 0.65rem;
}

.auth-footer__links a {
    color: var(--lav800);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-footer__links a:hover {
    text-decoration: underline;
}

.auth-footer__note {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: #7a7088;
}

.auth-footer__copy {
    margin: 0;
    font-size: 0.78rem;
    color: #9a90a8;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: min(1120px, calc(100% - 1.5rem));
    }

    .auth-body--public-nav .auth-shell {
        width: min(1120px, calc(100% - 1.25rem));
    }

    .auth-form-panel {
        order: -1;
    }

    .auth-form__row {
        grid-template-columns: 1fr;
    }

    .auth-contact-row {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        gap: 0.55rem;
    }

    .auth-card .auth-contact-row.booking-contact-row .ccp-field--compact {
        width: 100%;
        max-width: none;
        flex: none;
    }

    .auth-card .auth-contact-row__phone {
        width: 100%;
    }

    .auth-panel {
        min-height: auto;
    }

    .auth-panel__content {
        padding: 1.35rem 1.25rem;
    }

    .auth-panel h1 {
        font-size: clamp(1.45rem, 5vw, 1.85rem);
    }

    .auth-panel__lead {
        margin-bottom: 1rem;
        font-size: 0.92rem;
    }

    .auth-panel__trust {
        gap: 0.65rem;
    }

    .auth-panel__trust li {
        font-size: 0.85rem;
    }

    .auth-main {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .auth-main--public {
        padding-top: 0.85rem;
    }

    .auth-card {
        padding: 1.35rem 1.15rem;
    }

    .auth-header__actions .btn {
        display: none;
    }

    .auth-logo__tagline {
        display: none;
    }
}

@media (max-width: 540px) {
    .auth-shell {
        width: calc(100% - 1rem);
        gap: 0.85rem;
    }

    .auth-body--public-nav .auth-shell {
        width: calc(100% - 1rem);
    }

    .auth-card {
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(61, 47, 82, 0.06);
        padding: 1.25rem 1rem;
    }

    .auth-card__head h2 {
        font-size: 1.35rem;
    }

    .auth-card__head p {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }

    .auth-panel {
        border-radius: 18px;
    }

    .auth-panel__content {
        padding: 1.15rem 1rem;
    }

    .auth-panel__eyebrow {
        font-size: 0.72rem;
        margin-bottom: 0.5rem;
    }

    .auth-panel__trust {
        grid-template-columns: 1fr;
    }

    .auth-panel__icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .auth-form__submit,
    .auth-google-btn {
        min-height: 2.85rem;
    }

    .auth-footer {
        padding: 1rem 0 1.25rem;
    }

    .auth-footer__links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .auth-consent {
        padding: 0.85rem 0.85rem 0.75rem;
    }
}

.booking-otp-meta,
.auth-otp-meta {
    background: #faf8fc;
    border: 1px solid rgba(226, 217, 240, 0.95);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    margin: 1rem 0;
}

.booking-otp-timer,
.auth-otp-timer {
    margin: 0;
    font-size: 0.92rem;
    color: #5a5068;
}

.booking-otp-timer strong,
.auth-otp-timer strong {
    font-variant-numeric: tabular-nums;
    color: var(--lav800, #61467d);
}

.booking-otp-timer.is-expired strong,
.auth-otp-timer.is-expired strong {
    color: #b42318;
    text-transform: lowercase;
}

.booking-otp-resend-meta,
.auth-otp-resend-meta {
    margin: 0.4rem 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #7a7088;
}

.auth-shell--narrow {
    grid-template-columns: minmax(0, 1fr);
    width: min(520px, calc(100% - 2rem));
}

.auth-shell--reset {
    width: min(1120px, calc(100% - 2rem));
}

.auth-panel--reset {
    background: linear-gradient(155deg, #4a3568 0%, var(--lav900) 50%, #3d2d56 100%);
}

.auth-reset-steps {
    margin-bottom: 1.25rem;
}

.auth-reset-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.auth-reset-steps__item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #9a90a8;
    white-space: nowrap;
}

.auth-reset-steps__item.is-current {
    color: var(--lav800, #61467d);
}

.auth-reset-steps__item.is-current .auth-reset-steps__marker {
    background: var(--lav800, #61467d);
    border-color: var(--lav800, #61467d);
    color: #fff;
}

.auth-reset-steps__item.is-complete {
    color: #4a7a57;
}

.auth-reset-steps__item.is-complete .auth-reset-steps__marker {
    background: #5aa06a;
    border-color: #5aa06a;
    color: #fff;
}

.auth-reset-steps__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    border: 1.5px solid #d8cfe6;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.auth-reset-steps__divider {
    flex: 1;
    height: 2px;
    min-width: 0.75rem;
    margin: 0 0.35rem;
    background: linear-gradient(90deg, #e8e0f0, #d8cfe6);
    border-radius: 999px;
}

.auth-otp-field {
    text-align: center;
}

.auth-otp-input-wrap {
    display: flex;
    justify-content: center;
}

.auth-otp-input {
    width: min(100%, 14rem);
    padding: 0.9rem 1rem;
    border: 1.5px solid rgba(226, 217, 240, 0.95);
    border-radius: 14px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--lav900, #3d2f52);
    background: #fcfbfe;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-otp-input::placeholder {
    color: #cfc5dc;
    font-weight: 600;
    letter-spacing: 0.35em;
}

.auth-otp-input:focus {
    outline: none;
    border-color: var(--lav800, #61467d);
    box-shadow: 0 0 0 3px rgba(97, 70, 125, 0.12);
}

.auth-otp-timer-row {
    display: flex;
    justify-content: center;
}

.auth-otp-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(97, 70, 125, 0.08);
    font-size: 0.88rem;
    color: #5a5068;
}

.auth-otp-timer__icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    color: var(--lav800, #61467d);
}

.auth-otp-timer__icon svg {
    width: 100%;
    height: 100%;
}

.auth-reset-resend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
}

.auth-reset-resend .field-help,
.auth-reset-resend .auth-split__hint {
    margin: 0;
}

.auth-reset-resend .auth-split__text-btn {
    width: auto;
    margin-top: 0;
    display: inline;
}

.auth-reset-empty {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.auth-reset-empty p {
    margin: 0 0 1rem;
    color: #6b6078;
}

.auth-reset-invalid {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.auth-reset-invalid__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: rgba(228, 165, 198, 0.2);
    color: #9a4f4f;
}

.auth-reset-invalid__icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

.auth-reset-invalid .auth-card__head h2 {
    margin-bottom: 0.35rem;
}

.auth-reset-invalid .auth-form__submit {
    width: 100%;
    margin-top: 1rem;
}

.auth-form-panel--solo {
    width: 100%;
}

.auth-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-card__footer-link {
    margin-top: 1rem;
    text-align: center;
}

.account-body .auth-shell--narrow {
    margin-top: 0.5rem;
}

/* API manager login — form only */

.auth-body--api {
    background: #f4f4f5;
}

.auth-shell--api,
.auth-shell--api-login-only {
    width: min(420px, calc(100% - 2rem));
    display: block;
    margin-inline: auto;
}

.auth-card--api {
    border-radius: 14px;
    padding: 1.5rem 1.35rem;
    box-shadow: none;
}

.auth-card--api .auth-card__head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.auth-card--api .auth-card__head p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.auth-shell--api .auth-form__submit {
    background: linear-gradient(135deg, var(--md-purple) 0%, var(--lav900) 100%);
    box-shadow: none;
    border-radius: 10px;
    width: 100%;
}

.auth-body--api .auth-footer--minimal .auth-footer__inner {
    justify-content: center;
    text-align: center;
}

@media (max-width: 480px) {
    .auth-shell--api,
    .auth-shell--api-login-only {
        width: calc(100% - 1rem);
    }

    .auth-card--api {
        padding: 1.15rem 1rem;
    }

    .auth-shell--api .auth-form__submit {
        min-height: 2.85rem;
    }
}

/* —— Client auth full-bleed split (login / register / verify / reset) —— */
.auth-body--public-nav:is(.auth-body--login, .auth-body--register, .auth-body--verify) .public-header,
.auth-body--public-nav:is(.auth-body--login, .auth-body--register, .auth-body--verify) .auth-footer,
.auth-body--public-nav:is(.auth-body--login, .auth-body--register, .auth-body--verify) .mobile-dock {
    display: none !important;
}

.auth-body--login,
.auth-body--register,
.auth-body--verify {
    background: #fff;
    min-height: 100vh;
}

.auth-body--login .auth-main,
.auth-body--login .auth-main--public,
.auth-body--register .auth-main,
.auth-body--register .auth-main--public,
.auth-body--verify .auth-main,
.auth-body--verify .auth-main--public {
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
}

.auth-body--login .auth-split,
.auth-body--register .auth-split,
.auth-body--verify .auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    min-height: 100vh;
    width: 100%;
}

.auth-split__media {
    position: relative;
    overflow: hidden;
    background: var(--lav900);
}

.auth-split__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-split__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(61, 47, 82, 0.35) 0%, rgba(61, 47, 82, 0.12) 45%, rgba(42, 61, 40, 0.28) 100%);
}

.auth-split__brand {
    position: absolute;
    top: clamp(1.1rem, 2.8vw, 1.85rem);
    left: clamp(1.1rem, 2.8vw, 1.85rem);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    margin: 0;
    text-decoration: none;
}

.auth-split__brand-logo {
    display: block;
    width: auto;
    height: clamp(2.35rem, 3.4vw, 3.2rem);
    max-width: min(16rem, 58vw);
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.auth-split__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.5rem);
    background: #fff;
}

.auth-split__card {
    width: min(100%, 26rem);
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.auth-split__card.auth-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.auth-split__card .auth-form__submit,
.auth-split__card .auth-split__submit {
    width: 100%;
    margin-top: 1.15rem;
    min-height: 3.15rem;
    border-radius: 12px;
    font-size: 1.02rem;
    font-weight: 700;
}

.auth-split--register .auth-split__card {
    width: min(100%, 28rem);
}

.auth-split__head {
    margin-bottom: 1.35rem;
}

.auth-split__head h1 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #171717;
    line-height: 1.15;
}

.auth-split__head p {
    margin: 0;
    color: #737373;
    font-size: 1rem;
}

.auth-split__flash {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-split__flash.alert-error {
    border: 1px solid #f0c9c9;
    background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
    color: #8f2f2f;
}

.auth-split__flash.alert-success {
    border: 1px solid rgba(132, 161, 141, 0.35);
    background: linear-gradient(180deg, #f4faf6 0%, #fff 100%);
    color: #3d5a44;
}

.auth-method-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 0.3rem;
    margin-bottom: 1.35rem;
    background: #f4f4f5;
    border-radius: 999px;
}

.auth-method-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #525252;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.auth-method-toggle__btn.is-active {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #171717;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-method-toggle__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #22c55e;
}

.auth-split__label {
    display: block;
    margin: 0 0 0.55rem;
    font-weight: 700;
    color: #171717;
    font-size: 0.98rem;
}

.auth-split__hint {
    margin: 0.55rem 0 0;
    color: #737373;
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-split__input,
.auth-split__otp,
.auth-split__card .auth-form input[type="email"],
.auth-split__card .auth-form input[type="password"],
.auth-split__card .auth-form input[type="text"],
.auth-split__card .auth-form input[type="tel"],
.auth-contact-row--login .auth-contact-row__phone input,
.auth-split__card .auth-contact-row__phone input {
    width: 100%;
    min-height: 3.1rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: #171717;
}

.auth-split__otp {
    letter-spacing: 0.28em;
    text-align: center;
    font-weight: 600;
}

.auth-split__submit {
    width: 100%;
    margin-top: 1.15rem;
    min-height: 3.15rem;
    border-radius: 12px;
    font-size: 1.02rem;
    font-weight: 700;
}

.auth-split__submit--ghost {
    margin-top: 0.65rem;
}

.auth-split__text-btn {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.35rem;
    border: 0;
    background: transparent;
    color: var(--lav800);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth-split__text-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.auth-split__check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: #404040;
}

.auth-split__legal,
.auth-split__help {
    margin: 1.15rem 0 0;
    color: #737373;
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: center;
}

.auth-split__legal a,
.auth-split__help a {
    color: #404040;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-split__help a {
    color: var(--lav800);
    font-weight: 700;
    text-decoration: none;
}

.auth-contact-row--login {
    margin: 0;
}

.auth-phone-india {
    align-items: stretch;
}

.auth-phone-india__cc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.25rem;
    min-height: 3.1rem;
    padding: 0 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #f7f7f7;
    color: #404040;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    user-select: none;
}

.auth-split__hint--lead {
    margin: 0 0 0.85rem;
    color: #525252;
}

.auth-split__check--optional {
    color: #737373;
}

.auth-split__escape {
    margin: 0;
}

.auth-split__text-btn--link {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 0.65rem;
}

.auth-field-help {
    margin: 0.45rem 0 0;
    color: #737373;
    font-size: 0.84rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .auth-body--login .auth-split,
    .auth-body--register .auth-split,
    .auth-body--verify .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-split__media {
        min-height: 28vh;
        max-height: 34vh;
    }

    .auth-split__panel {
        padding: 1.5rem 1.15rem 2.5rem;
        align-items: flex-start;
    }
}


