/* āshrams — Sign in / Sign up */

body.ashrams-auth-page {
    margin: 0;
    background: #ffffff;
    font-family: 'Public Sans', var(--ashrams-inter, 'Inter', system-ui, sans-serif);
}

body.ashrams-auth-page .header,
body.ashrams-auth-page .footer,
body.ashrams-auth-page .ashrams-footer {
    display: none !important;
}

.ashrams-auth {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    --ashrams-auth-pad-top: clamp(1rem, 4vw, 2.5rem);
    --ashrams-auth-pad-right: 1rem;
    --ashrams-auth-pad-bottom: clamp(1rem, 4vw, 2.5rem);
    --ashrams-auth-pad-left: 1rem;
    padding: var(--ashrams-auth-pad-top) var(--ashrams-auth-pad-right) var(--ashrams-auth-pad-bottom) var(--ashrams-auth-pad-left);
    overflow: hidden;
}

.ashrams-auth__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: #ffffff;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Wide desktop: keep horizon centered; image fades to white at top/bottom */
@media (min-aspect-ratio: 3/2) {
    .ashrams-auth__bg {
        background-size: cover;
        background-position: center center;
    }
}

.ashrams-auth__shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 42rem;
}

/* ── Sign-in (Figma) ── */

.ashrams-auth__shell--signin {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-width: 672px;
}

.ashrams-auth__shell--signin .ashrams-auth__card--main,
.ashrams-auth__shell--signin .ashrams-auth__options {
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
}

.ashrams-auth__shell--signin .ashrams-auth__card--main {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.ashrams-auth__shell--signin .ashrams-auth__body {
    padding: 48px;
    text-align: center;
}

.ashrams-auth__shell--signin .ashrams-auth__title {
    margin: 0 0 16px;
    font-family: 'Public Sans', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: -0.75px;
    color: #1a1c1c;
}

.ashrams-auth__shell--signin .ashrams-auth__lead {
    margin: 0 auto 32px;
    max-width: 28.6875rem;
    font-family: 'Public Sans', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: #6b7280;
}

.ashrams-auth__shell--signin .ashrams-auth__stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 574px;
    margin: 0 auto;
}

.ashrams-auth__shell--signin .ashrams-auth__field,
.ashrams-auth__shell--signin .ashrams-auth__btn {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 16px 24px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    line-height: 16px;
    color: #1a1c1c;
    box-shadow: none;
}

.ashrams-auth__shell--signin .ashrams-auth__field {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-weight: 400;
    text-align: center;
}

.ashrams-auth__shell--signin .ashrams-auth__field--align-left {
    text-align: left;
}

.ashrams-auth__shell--signin .ashrams-auth__field::placeholder {
    color: #6b7280;
}

.ashrams-auth__shell--signin .ashrams-auth__field:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.55);
}

.ashrams-auth__shell--signin .ashrams-auth__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-weight: 500;
    line-height: 20px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.ashrams-auth__shell--signin .ashrams-auth__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.75);
}

.ashrams-auth__shell--signin .ashrams-auth__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ashrams-auth__shell--signin .ashrams-auth__hint {
    min-height: 0;
    margin: -8px 0 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #4b5563;
    text-align: center;
}

.ashrams-auth__shell--signin .ashrams-auth__hint--error {
    color: #7a3f2f;
}

.ashrams-auth__shell--signin .ashrams-auth__hint--success {
    color: #2e6b32;
}

.ashrams-auth__shell--signin .ashrams-auth__otp-step {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
}

.ashrams-auth__shell--signin .ashrams-auth__otp-step[hidden] {
    display: none !important;
}

.ashrams-auth__shell--signin .ashrams-auth__otp-label {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: #374151;
}

.ashrams-auth__shell--signin .ashrams-auth__field--otp {
    letter-spacing: 0.28em;
    font-variant-numeric: tabular-nums;
}

.ashrams-auth__shell--signin .ashrams-auth__field.is-invalid {
    border-color: rgba(154, 79, 58, 0.45);
}

.ashrams-auth__shell--signin .ashrams-auth__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.ashrams-auth__shell--signin .ashrams-auth__switch {
    margin: 16px 0 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: #6b7280;
}

.ashrams-auth__shell--signin .ashrams-auth__switch a {
    color: #1a1c1c;
    font-weight: 400;
    text-decoration: none;
}

.ashrams-auth__shell--signin .ashrams-auth__switch a:hover {
    text-decoration: underline;
}

.ashrams-auth__shell--signup {
    max-width: 620px;
}

.ashrams-auth__shell--signup .ashrams-auth__body {
    padding: 40px 40px 32px;
}

.ashrams-auth__shell--signup .ashrams-auth__stack,
.ashrams-auth__shell--signup .ashrams-auth__alert {
    max-width: 520px;
}

.ashrams-auth__shell--signup .ashrams-auth__title {
    font-size: 28px;
    line-height: 34px;
}

.ashrams-auth__shell--signup .ashrams-auth__lead {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 22px;
}

.ashrams-auth__shell--signup .ashrams-auth__options {
    padding: 20px 40px;
}

.ashrams-auth--signup {
    align-items: center;
}

.ashrams-auth__shell--signin .ashrams-auth__alert {
    margin: 0 auto 16px;
    max-width: 574px;
    padding: 10px 16px;
    border-radius: 5px;
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.ashrams-auth__shell--signin .ashrams-auth__alert--error {
    background: rgba(154, 79, 58, 0.12);
    color: #7a3f2f;
}

.ashrams-auth__shell--signin .ashrams-auth__alert--success {
    background: rgba(46, 125, 50, 0.12);
    color: #2e6b32;
}

.ashrams-auth__options {
    padding: 24px 50px 24px 40px;
}

.ashrams-auth__options-panel {
    width: 100%;
}

.ashrams-auth__options-panel--desktop {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ashrams-auth__options-panel--mobile {
    display: none;
}

.ashrams-auth__options-copy {
    text-align: left;
    min-width: 0;
}

.ashrams-auth__options-panel--mobile .ashrams-auth__options-copy {
    text-align: center;
}

.ashrams-auth__options-title {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.ashrams-auth__options-hint {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.05px;
    color: #4b5563;
}

.ashrams-auth__options-hint a {
    color: #4b5563;
    text-decoration: none;
}

.ashrams-auth__options-hint a:hover {
    text-decoration: underline;
}

.ashrams-auth__options-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}

.ashrams-auth__options-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 8px 20px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    color: #1a1c1c;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.ashrams-auth__options-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #1a1c1c;
}

/* ── Sign-in failed (Figma) ── */

.ashrams-auth__shell--failed {
    max-width: 672px;
}

.ashrams-auth__shell--failed .ashrams-auth__card--main {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.ashrams-auth__shell--failed .ashrams-auth__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px;
    text-align: center;
}

.ashrams-auth__failed-message {
    margin: 0 auto 32px;
    max-width: 384px;
    font-family: 'Public Sans', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: #6b7280;
}

.ashrams-auth__contact-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 8px 20px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    color: #000;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ashrams-auth__contact-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #000;
}

@media (max-width: 500px) {
    .ashrams-auth {
        align-items: flex-start;
        justify-content: flex-start;
        --ashrams-auth-pad-top: 40px;
        --ashrams-auth-pad-right: 16px;
        --ashrams-auth-pad-bottom: 24px;
        --ashrams-auth-pad-left: 16px;
        padding: var(--ashrams-auth-pad-top) var(--ashrams-auth-pad-right) var(--ashrams-auth-pad-bottom) var(--ashrams-auth-pad-left);
        min-height: 100vh;
        min-height: 100dvh;
    }

    .ashrams-auth__shell--signin {
        max-width: none;
        width: 100%;
        gap: 16px;
    }

    .ashrams-auth__shell--signin .ashrams-auth__card--main {
        width: 100%;
        max-width: 356px;
        margin: 0 auto;
    }

    .ashrams-auth__shell--signin .ashrams-auth__body {
        padding: 48px 30px;
    }

    .ashrams-auth__shell--signin .ashrams-auth__title {
        font-size: 24px;
        font-weight: 600;
        line-height: 36px;
        letter-spacing: 0;
        color: #474741;
    }

    .ashrams-auth__shell--signin .ashrams-auth__lead {
        margin: 0 auto 32px;
        max-width: 269px;
        font-size: 16px;
        line-height: 24px;
        color: #6b7280;
    }

    .ashrams-auth__shell--signin .ashrams-auth__stack {
        max-width: 294px;
        padding-top: 8px;
    }

    .ashrams-auth__shell--signin .ashrams-auth__btn {
        color: #474741;
    }

    .ashrams-auth__shell--signin .ashrams-auth__alert {
        max-width: 294px;
    }

    .ashrams-auth--signup {
        --ashrams-auth-pad-top: 40px;
        --ashrams-auth-pad-right: 16px;
        --ashrams-auth-pad-bottom: 24px;
        --ashrams-auth-pad-left: 16px;
        padding: var(--ashrams-auth-pad-top) var(--ashrams-auth-pad-right) var(--ashrams-auth-pad-bottom) var(--ashrams-auth-pad-left);
    }

    .ashrams-auth__shell--signin .ashrams-auth__grid {
        grid-template-columns: 1fr;
    }

    .ashrams-auth__options {
        width: 100%;
        max-width: 356px;
        margin: 0 auto;
        padding: 24px 40px;
    }

    .ashrams-auth__options-panel--desktop {
        display: none;
    }

    .ashrams-auth__options-panel--mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 17px;
    }

    .ashrams-auth__options-panel--mobile .ashrams-auth__options-title {
        color: #474741;
    }

    .ashrams-auth__options-panel--mobile .ashrams-auth__options-copy {
        max-width: 248px;
    }

    .ashrams-auth__options-panel--mobile .ashrams-auth__options-actions {
        justify-content: center;
        width: 100%;
        max-width: 275px;
    }

    .ashrams-auth__options-panel--mobile .ashrams-auth__options-btn {
        height: 46px;
        min-height: 46px;
    }

    .ashrams-auth__options-panel--mobile .ashrams-auth__options-btn--google {
        min-width: 151px;
    }

    .ashrams-auth--failed {
        --ashrams-auth-pad-top: 40px;
        --ashrams-auth-pad-right: 16px;
        --ashrams-auth-pad-bottom: 0;
        --ashrams-auth-pad-left: 16px;
        padding: var(--ashrams-auth-pad-top) var(--ashrams-auth-pad-right) var(--ashrams-auth-pad-bottom) var(--ashrams-auth-pad-left);
    }

    .ashrams-auth__shell--failed {
        max-width: none;
        width: 100%;
    }

    .ashrams-auth__shell--failed .ashrams-auth__card--main {
        width: 100%;
        max-width: 356px;
        margin: 0 auto;
    }

    .ashrams-auth__shell--failed .ashrams-auth__body {
        padding: 48px 30px;
    }

    .ashrams-auth__shell--failed .ashrams-auth__title {
        margin: 0 0 16px;
        font-size: 24px;
        font-weight: 600;
        line-height: 36px;
        letter-spacing: 0;
        color: #474741;
    }

    .ashrams-auth__shell--failed .ashrams-auth__failed-message {
        max-width: 255px;
        margin: 0 auto 32px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 300;
        color: #6b7280;
    }

    .ashrams-auth__shell--failed .ashrams-auth__contact-btn {
        height: 46px;
        min-height: 46px;
        min-width: 115px;
        color: #1a1c1c;
    }
}

@media (min-width: 501px) and (max-width: 720px) {
    .ashrams-auth__shell--signin .ashrams-auth__body {
        padding: clamp(1.5rem, 5vw, 2rem) clamp(1.25rem, 4vw, 1.5rem);
    }

    .ashrams-auth__shell--signin .ashrams-auth__title {
        font-size: clamp(1.625rem, 6vw, 1.875rem);
        line-height: 1.2;
    }

    .ashrams-auth__shell--signin .ashrams-auth__lead {
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 22px;
    }

    .ashrams-auth__options {
        padding: 20px 24px;
    }

    .ashrams-auth__options-panel--desktop {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .ashrams-auth__options-panel--desktop .ashrams-auth__options-copy {
        text-align: center;
    }

    .ashrams-auth__options-panel--desktop .ashrams-auth__options-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ── Sign up (legacy layout) ── */

.ashrams-auth__card {
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(24, 16, 12, 0.12);
    overflow: hidden;
}

.ashrams-auth__body {
    padding: clamp(1.75rem, 4vw, 2.35rem) clamp(1.5rem, 4vw, 2.5rem) clamp(1.35rem, 3vw, 1.75rem);
    text-align: center;
}

.ashrams-auth__mark {
    display: block;
    width: 2rem;
    height: 2rem;
    margin: 0 auto 1.15rem;
}

.ashrams-auth__title {
    margin: 0 0 0.65rem;
    font-family: var(--ashrams-inter, 'Inter', system-ui, sans-serif);
    font-size: clamp(1.75rem, 3.5vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #111;
}

.ashrams-auth__lead {
    margin: 0 auto 1.35rem;
    max-width: 26rem;
    font-family: var(--ashrams-manrope, 'Manrope', system-ui, sans-serif);
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    font-weight: 300;
    line-height: 1.55;
    color: rgba(17, 17, 17, 0.72);
}

.ashrams-auth__alert {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    line-height: 1.4;
}
.ashrams-auth__alert--error {
    background: #fde8e8 !important;
    border: 1px solid #f8b4b4 !important;
    color: #9b1c1c !important;
}

.ashrams-auth__alert--success {
    background: #def7ec !important;
    border: 1px solid #31c48d !important;
    color: #03543f !important;
}

.ashrams-auth__stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ashrams-auth__field,
.ashrams-auth__btn {
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.58);
    font-family: var(--ashrams-inter, 'Inter', system-ui, sans-serif);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.2;
    color: #111;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ashrams-auth__field::placeholder {
    color: rgba(17, 17, 17, 0.55);
}

.ashrams-auth__field:focus {
    outline: none;
    border-color: rgba(154, 79, 58, 0.45);
    background: rgba(255, 255, 255, 0.72);
}

.ashrams-auth__btn {
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.ashrams-auth__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.72);
}

.ashrams-auth__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ashrams-auth__btn--primary {
    background: rgba(255, 255, 255, 0.72);
    font-weight: 400;
}

.ashrams-auth__btn--social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.ashrams-auth__btn-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ashrams-auth__btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ashrams-auth__divider {
    margin: 0.15rem 0 0.35rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(17, 17, 17, 0.56);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.ashrams-auth__hint {
    min-height: 1rem;
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: rgba(17, 17, 17, 0.55);
}

.ashrams-auth__switch {
    margin-top: 1rem;
    font-family: var(--ashrams-manrope, 'Manrope', system-ui, sans-serif);
    font-size: 0.875rem;
    color: rgba(17, 17, 17, 0.72);
}

.ashrams-auth__switch a {
    color: var(--ashrams-terracotta, #9a4f3a);
    text-decoration: none;
    font-weight: 400;
}

.ashrams-auth__switch a:hover {
    text-decoration: underline;
}

.ashrams-auth__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.25rem, 3vw, 1.75rem);
    background: rgba(255, 255, 255, 0.42);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.ashrams-auth__footer-copy {
    text-align: left;
    min-width: 0;
}

.ashrams-auth__footer-title {
    margin: 0 0 0.2rem;
    font-family: var(--ashrams-inter, 'Inter', system-ui, sans-serif);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
    color: #111;
}

.ashrams-auth__footer-text {
    margin: 0;
    font-family: var(--ashrams-manrope, 'Manrope', system-ui, sans-serif);
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 300;
    color: rgba(17, 17, 17, 0.62);
}

.ashrams-auth__footer-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.ashrams-auth__footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.72);
    font-family: var(--ashrams-inter, 'Inter', system-ui, sans-serif);
    font-size: 0.75rem;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}

.ashrams-auth__footer-btn--ghost {
    background: rgba(255, 255, 255, 0.35);
}

.ashrams-auth__footer-btn:hover {
    background: rgba(255, 255, 255, 0.88);
    color: #111;
}

/* Sign up grid */
.ashrams-auth__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.ashrams-auth__grid .ashrams-auth__field {
    text-align: left;
}

@media (max-width: 640px) {
    .ashrams-auth__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ashrams-auth__footer-copy {
        text-align: center;
    }

    .ashrams-auth__footer-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ashrams-auth__grid {
        grid-template-columns: 1fr;
    }
}

/* ── OTP page (Figma: full-bleed photo + soft mix into footer) ── */

body.ashrams-auth-page.ashrams-home,
body.ashrams-auth-page {
    background: #ffffff !important;
}

body.ashrams-auth-page .ashrams-otp--cover,
body.ashrams-home .ashrams-otp--cover {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #ffffff;
}

/* One continuous scene: image melts into footer — no hard section join */
.ashrams-otp--cover .ashrams-otp__scene {
    position: relative;
    width: 100%;
    background: #ffffff;
}

.ashrams-otp--cover .ashrams-otp__cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100vh + 10rem);
    height: calc(100dvh + 10rem);
    z-index: 0;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
}

.ashrams-otp--cover .ashrams-otp__cover-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}

.ashrams-otp--cover .ashrams-otp__cover-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(14rem, 38vh, 22rem);
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 58%,
        rgba(255, 255, 255, 0.18) 82%,
        rgba(255, 255, 255, 0.78) 94%,
        #ffffff 100%
    );
}

.ashrams-otp--cover .ashrams-otp__cover-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 36rem);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(2.75rem, 8vh, 4.5rem) 1.25rem 2rem;
    text-align: center;
    box-sizing: border-box;
}

.ashrams-otp--cover .ashrams-otp__alert {
    margin: 0 auto 0.85rem;
    max-width: 28rem;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
}

.ashrams-otp--cover .ashrams-otp__alert--error {
    color: #7a3f2f;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.ashrams-otp--cover .ashrams-otp__alert--local {
    color: #2e6b32;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.ashrams-otp--cover .ashrams-otp__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.ashrams-otp--cover .ashrams-otp__digits {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
}

.ashrams-otp--cover .ashrams-otp__digit {
    width: 3rem;
    height: 3.5rem;
    box-sizing: border-box;
    border: 1px solid rgba(209, 213, 219, 0.95);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 3.5rem;
    color: #374151;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ashrams-otp--cover .ashrams-otp__digit:focus {
    border-color: #9a4f3a;
    box-shadow: 0 0 0 3px rgba(154, 79, 58, 0.14);
    background: #ffffff;
}

.ashrams-otp--cover .ashrams-otp__expiry {
    margin: 0.35rem 0 0;
    font-family: 'Inter', 'Public Sans', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ashrams-otp--cover .ashrams-otp__hint {
    min-height: 1.1rem;
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.8125rem;
    color: #4b5563;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ashrams-otp--cover .ashrams-otp__hint--error {
    color: #7a3f2f;
}

.ashrams-otp--cover .ashrams-otp__hint--success {
    color: #2e6b32;
}

.ashrams-otp--cover .ashrams-otp__resend {
    margin-top: 0.15rem;
    border: 0;
    background: transparent;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ashrams-otp--cover .ashrams-otp__resend:disabled {
    color: #6b7280;
    cursor: default;
    text-decoration: none;
}

.ashrams-otp--cover .ashrams-otp__back {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.8125rem;
    color: #4b5563;
    text-decoration: none;
}

.ashrams-otp--cover .ashrams-otp__back:hover {
    color: #111827;
}

/* Transparent footer sits on the soft white mix — no hard cut */
.ashrams-otp--cover .ashrams-otp__footer-block {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 15.5rem 1.5rem 3.5rem;
}

.ashrams-otp--cover .ashrams-otp__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 29.75rem;
    margin: 0 auto;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.0625rem;
    line-height: 1rem;
    text-align: center;
    text-transform: uppercase;
    color: #717171;
}

.ashrams-otp--cover .ashrams-otp__footer-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.ashrams-otp--cover .ashrams-otp__footer p {
    margin: 0;
}

.ashrams-otp--cover .ashrams-otp__footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.ashrams-otp--cover .ashrams-otp__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    color: #525252;
    opacity: 0.7;
}

.ashrams-otp--cover .ashrams-otp__social a {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
}

.ashrams-otp--cover .ashrams-otp__social a:hover {
    opacity: 1;
    color: #171717;
}

@media (max-width: 480px) {
    .ashrams-otp--cover .ashrams-otp__digit {
        width: 2.45rem;
        height: 2.95rem;
        font-size: 1.4rem;
        line-height: 2.95rem;
    }

    .ashrams-otp--cover .ashrams-otp__digits {
        gap: 0.4rem;
    }

    .ashrams-otp--cover .ashrams-otp__cover-bg {
        height: calc(100vh + 8rem);
        height: calc(100dvh + 8rem);
    }

    .ashrams-otp--cover .ashrams-otp__cover-bg img {
        object-position: 55% 58%;
    }

    .ashrams-otp--cover .ashrams-otp__cover-fade {
        height: clamp(12rem, 34vh, 18rem);
    }

    .ashrams-otp--cover .ashrams-otp__footer-block {
        padding: 2rem 1.25rem 3rem;
    }
}
