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

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700&display=swap');

body.ashrams-auth-page {
    --ashrams-public-sans: 'Public Sans', system-ui, sans-serif;
    --ashrams-auth-glass-fill: rgba(255, 255, 255, 0.4);
    --ashrams-auth-glass-border: rgba(255, 255, 255, 0.3);
    --ashrams-auth-glass-blur: 12px;
    /* MainCard @ 1440 — Figma (tuned) */
    --ashrams-auth-card-width: 620px;
    --ashrams-auth-card-radius: 32px;
    --ashrams-auth-card-padding: 48px;
    --ashrams-auth-card-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.08);
    background: #1a120e;
    font-family: var(--ashrams-public-sans);
}

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

.ashrams-auth {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    overflow: hidden;
}

.ashrams-auth__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.ashrams-auth__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 12, 0.06);
}

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

.ashrams-auth__shell--signin {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: var(--ashrams-auth-card-width);
}

.ashrams-auth__card {
    background: var(--ashrams-auth-glass-fill);
    backdrop-filter: blur(var(--ashrams-auth-glass-blur));
    -webkit-backdrop-filter: blur(var(--ashrams-auth-glass-blur));
    border: 1px solid var(--ashrams-auth-glass-border);
    border-radius: 22px;
    box-shadow: var(--ashrams-auth-card-shadow);
    overflow: hidden;
}

.ashrams-auth__shell--signin .ashrams-auth__card--main {
    width: 100%;
    border-radius: var(--ashrams-auth-card-radius);
    box-shadow: var(--ashrams-auth-card-shadow);
    overflow: visible;
}

.ashrams-auth__body {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    text-align: center;
}

.ashrams-auth__shell--signin .ashrams-auth__body {
    padding: clamp(1.35rem, 4vw, var(--ashrams-auth-card-padding));
}

.ashrams-auth__shell--signin .ashrams-auth__lead {
    margin-bottom: 1.75rem;
}

.ashrams-auth__shell--signin .ashrams-auth__stack {
    gap: 0.55rem;
}

.ashrams-auth__shell--signin .ashrams-auth__field,
.ashrams-auth__shell--signin .ashrams-auth__btn {
    min-height: 2.75rem;
    padding: 0.7rem 1.15rem;
}

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

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

.ashrams-auth__shell--signin #signin-email,
.ashrams-auth__shell--signin #signin-otp {
    font-size: 14px;
}

/* Send OTP — Figma Button */
.ashrams-auth__shell--signin #send-otp-btn {
    min-height: 50px;
    padding: 14px 32px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    color: #1a1c1c;
}

.ashrams-auth__shell--signin .ashrams-auth__hint {
    min-height: 0;
    margin: 0;
    line-height: 1.3;
}

.ashrams-auth__shell--signin .ashrams-auth__hint:not(:empty) {
    margin-top: -0.15rem;
}

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

.ashrams-auth__title {
    margin: 0 0 0.5rem;
    font-family: var(--ashrams-public-sans);
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -0.75px;
    color: #1a1c1c;
}

.ashrams-auth__shell--signin .ashrams-auth__title {
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.ashrams-auth__lead {
    margin: 0 auto 1.5rem;
    max-width: 28.6875rem;
    font-family: var(--ashrams-public-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0;
    color: #6b7280;
}

/* Sign-in failed */
.ashrams-auth__shell--failed .ashrams-auth__body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ashrams-auth__failed-message {
    margin: 0 auto 1.75rem;
    max-width: 28rem;
    font-family: var(--ashrams-public-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0;
    color: #6b7280;
    text-align: center;
}

.ashrams-auth__contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-family: var(--ashrams-public-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    color: #000;
    text-decoration: none;
    transition: background 0.2s ease;
}

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

.ashrams-auth__alert {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    font-family: var(--ashrams-public-sans);
    font-size: 0.8125rem;
    line-height: 1.4;
}

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

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

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

.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.65);
    background: rgba(255, 255, 255, 0.42);
    font-family: var(--ashrams-public-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    color: #1a1c1c;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.ashrams-auth__field::placeholder {
    color: rgba(107, 114, 128, 0.85);
}

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

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

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

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

.ashrams-auth__shell--signin #send-otp-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.68);
}

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

.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-family: var(--ashrams-public-sans);
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(107, 114, 128, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.ashrams-auth__hint {
    min-height: 1rem;
    margin: 0;
    font-family: var(--ashrams-public-sans);
    font-size: 0.75rem;
    color: #6b7280;
}

.ashrams-auth__switch {
    margin-top: 1rem;
    font-family: var(--ashrams-public-sans);
    font-size: 0.875rem;
    color: #6b7280;
}

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

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

/* Sign-in: SecondaryGlassCard (Figma) */
.ashrams-auth__options {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 5.375rem;
    padding: 24px 40px;
    background: var(--ashrams-auth-glass-fill);
    backdrop-filter: blur(var(--ashrams-auth-glass-blur));
    -webkit-backdrop-filter: blur(var(--ashrams-auth-glass-blur));
    border: 1px solid var(--ashrams-auth-glass-border);
    border-radius: var(--ashrams-auth-card-radius);
    box-shadow: var(--ashrams-auth-card-shadow);
    font-family: var(--ashrams-public-sans);
}

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

.ashrams-auth__options-title {
    margin: 0 0 0.25rem;
    font-family: var(--ashrams-public-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0;
    color: #1a1c1c;
}

.ashrams-auth__options-hint {
    margin: 0;
    font-family: var(--ashrams-public-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0;
    color: #6b7280;
}

.ashrams-auth__options-hint a {
    font-family: var(--ashrams-public-sans);
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ashrams-auth__options-hint a:hover {
    color: #1a1c1c;
}

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

.ashrams-auth__options-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.55);
    font-family: var(--ashrams-public-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0;
    color: #1a1c1c;
    text-decoration: none;
    white-space: nowrap;
}

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

/* Legacy in-card footer (sign up) */
.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.28);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

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

.ashrams-auth__footer-title {
    margin: 0 0 0.2rem;
    font-family: var(--ashrams-public-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1c1c;
}

.ashrams-auth__footer-text {
    margin: 0;
    font-family: var(--ashrams-public-sans);
    font-size: 0.75rem;
    line-height: 1.4;
    color: #6b7280;
}

.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.7);
    background: rgba(255, 255, 255, 0.55);
    font-family: var(--ashrams-public-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: #1a1c1c;
    text-decoration: none;
    white-space: nowrap;
}

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

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

/* 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__options {
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--ashrams-auth-card-radius);
        padding: 20px 24px;
        min-height: 0;
    }

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

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

    .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;
    }
}

@media (max-width: 480px) {
    .ashrams-auth__title {
        font-size: 26px;
        line-height: 32px;
        letter-spacing: -0.5px;
    }
}

/* MainCard + SecondaryGlassCard — Figma @ 1440 */
@media (min-width: 1440px) {
    .ashrams-auth__shell--signin .ashrams-auth__body {
        padding: var(--ashrams-auth-card-padding);
    }

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