/* ============================================================
   Daily Bazaar — Premium Auth (Login / Register)
   ============================================================ */

:root {
    --auth-gold: #c9a227;
    --auth-gold-soft: rgba(201, 162, 39, 0.18);
    --auth-ink: #0f2419;
    --auth-muted: #5a7a68;
    --auth-line: rgba(39, 174, 96, 0.12);
    --auth-card-shadow: 0 32px 64px -24px rgba(15, 36, 25, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

body.page-auth {
    background: url('../images/mobile-closed-bg.png') no-repeat center center fixed;
    background-size: cover;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.page-auth-standalone .auth-page-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.25rem 0 2rem;
}

body.page-auth .premium-footer,
body.page-auth .mobile-nav {
    display: none !important;
}

body.page-auth .mobile-location-strip,
body.page-auth .mobile-header-wrapper {
    display: none !important;
}

@media (max-width: 991.98px) {
    body.page-auth {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        background: url('../images/mobile-closed-bg.png') no-repeat center center fixed !important;
        background-size: cover !important;
    }

    body.page-auth:has(.mobile-location-strip) {
        padding-top: 0 !important;
    }
}

/* ---- Page shell ---- */
.auth-page-wrapper {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 2.5rem 0 3.5rem;
    overflow: hidden;
}

.auth-page-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
}

.auth-bg-orb-1 {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.14) 0%, transparent 68%);
}

.auth-bg-orb-2 {
    width: 420px;
    height: 420px;
    bottom: -140px;
    left: -100px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
}

.auth-bg-orb-3 {
    width: 280px;
    height: 280px;
    top: 40%;
    left: 45%;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.1) 0%, transparent 72%);
}

.auth-container {
    position: relative;
    z-index: 1;
}

/* ---- Card ---- */
.auth-card {
    display: flex;
    min-height: 580px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--auth-card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

/* ---- Banner (desktop) ---- */
.auth-banner-side {
    flex: 0 0 44%;
    max-width: 44%;
    position: relative;
    padding: 3rem 2.75rem;
    color: #fff;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
        linear-gradient(145deg, #1a5c3a 0%, #0f3d28 48%, #0a2b1c 100%);
    overflow: hidden;
}

.auth-banner-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
}

.auth-banner-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.28) 0%, transparent 70%);
}

.auth-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.45rem 0.9rem;
    margin-bottom: 1.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
}

.auth-banner-badge i {
    color: var(--auth-gold);
}

.auth-banner-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 2.6vw, 2.65rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1.1rem;
    letter-spacing: -0.02em;
}

.auth-banner-text {
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
    max-width: 26rem;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    color: #fff;
}

.auth-banner-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.auth-banner-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.auth-banner-trust i {
    color: var(--auth-gold);
}

/* ---- Form side ---- */
.auth-form-side {
    flex: 1;
    padding: 2.75rem 3.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
}

.auth-mobile-hero {
    margin: -0.5rem 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--auth-line);
}

.auth-brand-mark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.auth-brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf8ef 0%, #dff5ea 100%);
    border: 1px solid rgba(39, 174, 96, 0.18);
    color: var(--primary-color);
    font-size: 1.15rem;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.12);
}

.auth-brand-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--auth-ink);
}

.auth-brand-tagline {
    display: block;
    font-size: 0.78rem;
    color: var(--auth-muted);
    margin-top: 0.1rem;
}

.auth-header {
    margin-bottom: 1.75rem;
}

.auth-header .auth-brand-mark {
    margin-bottom: 1.35rem;
}

.auth-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 700;
    color: var(--auth-ink);
    margin-bottom: 0.45rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.auth-subtitle {
    color: var(--auth-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 28rem;
    margin: 0;
}

/* ---- Alerts ---- */
.auth-alert,
.auth-otp-alert {
    display: none;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.auth-alert.alert-success,
.auth-otp-alert.alert-success {
    display: flex;
    background: #ecfdf3;
    border-color: rgba(39, 174, 96, 0.22);
    color: #166534;
}

.auth-alert.alert-danger,
.auth-otp-alert.alert-danger {
    display: flex;
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.18);
    color: #991b1b;
}

/* ---- Form fields ---- */
.auth-form {
    width: 100%;
}

.auth-input-group {
    margin-bottom: 1.15rem;
}

.auth-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3d5c4a;
    margin-bottom: 0.45rem;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a89c;
    font-size: 0.92rem;
    transition: color 0.25s ease;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1.5px solid #dce8e0;
    border-radius: 14px;
    font-size: 1rem;
    color: var(--auth-ink);
    background: #f7fbf8;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auth-input::placeholder {
    color: #9aaea3;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--primary-color);
}

.auth-input[readonly] {
    background: #eef5f0;
    color: #4b6356;
    cursor: default;
}

/* Phone field with +91 prefix */
.auth-phone-field {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #dce8e0;
    border-radius: 14px;
    overflow: hidden;
    background: #f7fbf8;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-phone-field:focus-within {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.auth-phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.95rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2f5a42;
    background: linear-gradient(180deg, #edf7f0 0%, #e3f2e8 100%);
    border-right: 1px solid #dce8e0;
    white-space: nowrap;
}

.auth-phone-field .auth-input {
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    padding-left: 1rem;
    background: transparent;
}

.auth-phone-field .auth-input:focus {
    box-shadow: none;
}

.auth-input.has-toggle {
    padding-right: 2.75rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a89c;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 2;
}

.auth-password-toggle:hover {
    color: var(--primary-color);
}

.auth-forgot-link {
    display: inline-block;
    margin: -0.35rem 0 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

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

/* ---- Buttons ---- */
.auth-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 0.35rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #2a9d5c 0%, #1e7a47 55%, #166534 100%);
    box-shadow: 0 10px 24px rgba(30, 122, 71, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(30, 122, 71, 0.34);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.auth-btn-outline {
    width: 100%;
    min-height: 48px;
    margin-top: 0.75rem;
    border: 1.5px solid var(--auth-line);
    border-radius: 14px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-btn-outline:hover:not(:disabled) {
    background: #f3fbf6;
    border-color: rgba(39, 174, 96, 0.28);
}

.auth-resend-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
}

.auth-resend-btn:disabled {
    color: var(--auth-muted);
    cursor: not-allowed;
}

/* ---- OTP step ---- */
.auth-otp-step {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(39, 174, 96, 0.22);
    animation: authFadeUp 0.35s ease;
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-otp-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3fbf6 0%, #eaf7ef 100%);
    border: 1px solid rgba(39, 174, 96, 0.14);
    color: #35624a;
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-otp-note i {
    color: var(--primary-color);
    margin-top: 0.15rem;
}

.auth-otp-note strong {
    color: var(--auth-ink);
}

.auth-otp-input {
    text-align: center;
    letter-spacing: 0.45em;
    font-size: 1.25rem;
    font-weight: 700;
    padding-left: 1rem !important;
    padding-right: 1rem;
    font-variant-numeric: tabular-nums;
}

.auth-step-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-gold);
}

.auth-step-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--auth-gold), transparent);
}

/* ---- Footer link ---- */
.auth-footer {
    margin-top: 1.75rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--auth-line);
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.94rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    border-bottom-color: rgba(39, 174, 96, 0.35);
}

.auth-trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 1rem;
}

.auth-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    color: #7a9485;
}

.auth-trust-row i {
    color: var(--auth-gold);
    font-size: 0.72rem;
}

/* ---- Tablet / mobile ---- */
@media (max-width: 991.98px) {
    html.page-auth-root,
    html.page-auth-root body.page-auth-standalone {
        height: 100%;
        overflow: hidden;
    }

    body.page-auth-standalone {
        min-height: 100vh;
        min-height: 100dvh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.page-auth-standalone .auth-page-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow: hidden;
    }

    body.page-auth-standalone .auth-container,
    body.page-auth-standalone .auth-container > .row,
    body.page-auth-standalone .auth-container .col-12 {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    body.page-auth-standalone .auth-container > .row {
        width: 100%;
        margin: 0;
    }

    body.page-auth-standalone .auth-container .col-12 {
        padding: 0;
        max-width: 100%;
    }

    .auth-page-bg {
        display: none;
    }

    .auth-page-wrapper {
        min-height: 0;
        align-items: stretch;
        padding: 0;
        overflow: hidden;
    }

    body.page-auth-standalone .auth-container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .auth-container,
    .auth-container > .row,
    .auth-container .col-12 {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    .auth-card {
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        height: 100%;
        max-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: hidden;
    }

    .auth-form-side {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .auth-mobile-topbar {
        position: relative;
        top: auto;
        flex-shrink: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 1rem 0.65rem;
        background: transparent !important;
        border-bottom: none !important;
    }

    .auth-mobile-back {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--auth-ink);
        text-decoration: none;
        background: #f2f8f4;
        border: 1px solid rgba(39, 174, 96, 0.12);
        flex-shrink: 0;
    }

    .auth-mobile-top-title {
        flex: 1;
        margin: 0;
        text-align: center;
        font-size: 1rem;
        font-weight: 700;
        color: var(--auth-ink);
        letter-spacing: 0.01em;
    }

    .auth-mobile-top-spacer {
        width: 40px;
        flex-shrink: 0;
    }

    .auth-mobile-inner {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.25rem 1rem 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    .auth-mobile-logo-wrap {
        text-align: center;
        padding: 0.35rem 0 0.15rem;
        flex-shrink: 0;
    }

    .auth-mobile-logo {
        height: 56px;
        width: auto;
        object-fit: contain;
    }

    .auth-steps {
        margin: 0.65rem 0 0.85rem;
        padding: 0.5rem 0.65rem;
        border-radius: 14px;
        flex-shrink: 0;
    }

    .auth-header {
        text-align: center;
        margin-bottom: 0.85rem;
        flex-shrink: 0;
    }

    .auth-title {
        font-size: 1.55rem;
        margin-bottom: 0.3rem;
        line-height: 1.15;
    }

    .auth-subtitle {
        font-size: 0.86rem;
        margin: 0 auto;
        max-width: 22rem;
        line-height: 1.45;
    }

    .auth-form {
        width: 100%;
        flex-shrink: 0;
    }

    .auth-input-group {
        margin-bottom: 0.85rem;
    }

    .auth-input,
    .auth-btn,
    .auth-phone-field {
        min-height: 48px;
    }

    .auth-input {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        font-size: 16px;
    }

    .auth-btn {
        margin-top: 0.5rem;
    }

    .auth-footer {
        margin-top: 0.65rem;
        padding-top: 0.65rem;
        border-top: none;
        flex-shrink: 0;
    }

    .auth-trust-row {
        margin-top: 0.5rem;
        gap: 0.4rem 0.75rem;
    }

    .auth-trust-row span {
        font-size: 0.7rem;
    }

    .auth-card--verify .auth-form-side {
        padding: 0;
    }

    .auth-card--verify {
        border-radius: 0;
        max-width: none;
    }

    .auth-verify-hero {
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }

    .auth-verify-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 0.55rem;
        font-size: 1.2rem;
        border-radius: 16px;
    }

    .auth-verify-target {
        font-size: 0.88rem;
    }

    .auth-verify-summary {
        margin-bottom: 0.85rem;
        padding: 0.75rem 0.85rem;
        flex-shrink: 0;
    }

    .auth-verify-summary-row {
        padding: 0.35rem 0;
        font-size: 0.82rem;
    }

    .auth-verify-summary-row span {
        font-size: 0.68rem;
    }

    .auth-otp-grid {
        gap: 0.4rem;
        max-width: 100%;
    }

    .auth-otp-box {
        min-height: 0;
        aspect-ratio: 1;
        font-size: 1.15rem;
        border-radius: 11px;
    }

    .auth-verify-actions {
        margin-top: 0.75rem;
    }

    /* Login / register — center content on mobile */
    .auth-card--entry .auth-form-side {
        justify-content: flex-start;
    }

    .auth-card--entry .auth-mobile-inner {
        flex: 1 1 auto;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 0.5rem;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .auth-card--entry .auth-mobile-logo-wrap,
    .auth-card--entry .auth-steps,
    .auth-card--entry .auth-header,
    .auth-card--entry .auth-alert,
    .auth-card--entry .auth-form,
    .auth-card--entry .auth-footer {
        width: 100%;
        max-width: 22rem;
    }

    .auth-card--entry .auth-footer {
        text-align: center;
    }

    .auth-card--entry .auth-input-group {
        text-align: left;
    }

    .auth-card--entry .auth-label {
        text-align: left;
    }
}

@media (max-width: 991.98px) and (max-height: 720px) {
    .auth-card--entry .auth-mobile-inner {
        justify-content: flex-start;
        padding-top: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .auth-mobile-inner {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .auth-mobile-logo {
        height: 48px;
    }

    .auth-title {
        font-size: 1.42rem;
    }

    .auth-subtitle {
        font-size: 0.82rem;
    }

    .auth-steps-label {
        font-size: 0.68rem;
    }

    .auth-otp-grid {
        gap: 0.3rem;
    }

    .auth-otp-box {
        font-size: 1.05rem;
        border-radius: 10px;
    }

    .auth-input-group {
        margin-bottom: 0.7rem;
    }
}

/* Short mobile screens (e.g. iPhone SE, small Android) */
@media (max-width: 991.98px) and (max-height: 700px) {
    .auth-mobile-logo {
        height: 42px;
    }

    .auth-header {
        margin-bottom: 0.55rem;
    }

    .auth-title {
        font-size: 1.32rem;
    }

    .auth-subtitle {
        font-size: 0.8rem;
    }

    .auth-verify-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.4rem;
    }

    .auth-verify-summary {
        padding: 0.55rem 0.7rem;
        margin-bottom: 0.65rem;
    }

    .auth-input,
    .auth-btn,
    .auth-phone-field {
        min-height: 44px;
    }

    .auth-footer {
        margin-top: 0.45rem;
        padding-top: 0.45rem;
    }
}

@media (min-width: 992px) {
    .auth-form-side {
        padding: 3rem 3.5rem;
    }
}

/* ============================================================
   Enhanced luxury auth + verify pages
   ============================================================ */

.auth-bg-grain {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.auth-card--verify {
    min-height: auto;
    max-width: 560px;
    margin: 0 auto;
}

.auth-card--verify .auth-form-side {
    padding: 2rem 2.25rem 2.35rem;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--auth-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: var(--primary-color);
}

/* Step progress */
.auth-steps {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.35rem;
    padding: 0.65rem 0.85rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f6fbf8 0%, #eef7f1 100%);
    border: 1px solid var(--auth-line);
}

.auth-steps-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
    color: #8aa396;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.auth-steps-item.is-active {
    color: var(--auth-ink);
}

.auth-steps-item.is-done {
    color: var(--primary-color);
}

.auth-steps-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    background: #fff;
    border: 1.5px solid #d5e5db;
    color: #8aa396;
}

.auth-steps-item.is-active .auth-steps-dot {
    background: linear-gradient(135deg, #2a9d5c, #166534);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 122, 71, 0.28);
}

.auth-steps-item.is-done .auth-steps-dot {
    background: #eaf7ef;
    border-color: rgba(39, 174, 96, 0.35);
    color: var(--primary-color);
}

.auth-steps-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-steps-line {
    flex: 0 0 18px;
    height: 2px;
    border-radius: 999px;
    background: #d5e5db;
}

.auth-steps-line.is-done {
    background: linear-gradient(90deg, var(--primary-color), rgba(39, 174, 96, 0.35));
}

.auth-btn-luxe {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #2fbf67 0%, #1e7a47 52%, #14532d 100%);
}

.auth-btn-luxe::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.auth-btn-luxe:hover:not(:disabled)::after {
    transform: translateX(120%);
}

/* Verify page */
.auth-verify-hero {
    text-align: center;
    margin-bottom: 1.35rem;
}

.auth-verify-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--primary-color);
    background: linear-gradient(145deg, #ffffff 0%, #eaf7ef 100%);
    border: 1px solid rgba(39, 174, 96, 0.16);
    box-shadow: 0 12px 28px rgba(39, 174, 96, 0.12);
}

.auth-verify-target {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.94rem;
}

.auth-verify-target strong {
    color: var(--auth-ink);
    font-weight: 700;
}

.auth-verify-summary {
    margin-bottom: 1.35rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fafdfb 0%, #f2f9f5 100%);
    border: 1px solid var(--auth-line);
}

.auth-verify-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 0;
    font-size: 0.88rem;
}

.auth-verify-summary-row + .auth-verify-summary-row {
    border-top: 1px dashed rgba(39, 174, 96, 0.14);
}

.auth-verify-summary-row span {
    color: var(--auth-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
    font-weight: 700;
}

.auth-verify-summary-row strong {
    color: var(--auth-ink);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

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

.auth-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
    max-width: 360px;
    margin: 0 auto;
}

.auth-otp-box {
    width: 100%;
    aspect-ratio: 1;
    min-height: 48px;
    border: 1.5px solid #d5e5db;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--auth-ink);
    font-variant-numeric: tabular-nums;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-otp-box:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.12);
    transform: translateY(-1px);
}

.auth-verify-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.15rem;
}

@media (max-width: 991.98px) {
    .auth-card--verify {
        border-radius: 0;
    }
}

/* Custom Mobile UI Overrides */
@media (max-width: 991.98px) {
    /* Increase Daily Bazaar logo */
    .auth-mobile-logo {
        height: 100px !important;
        margin-bottom: 10px;
    }
    
    /* Move form down a bit */
    .auth-mobile-inner {
        margin-top: 6vh;
    }

    /* Reduce field and button sizes */
    .auth-input, .auth-btn, .auth-phone-field {
        min-height: 40px !important;
    }
    .auth-input {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        font-size: 15px !important;
    }
    .auth-btn {
        min-height: 42px !important;
        font-size: 0.95rem !important;
    }
    
    /* Reduce Create Account heading size */
    .auth-title {
        font-size: 1.25rem !important;
    }
    
    /* Elevate bottom private/secure texts */
    .auth-trust-row span {
        background: rgba(0, 0, 0, 0.45) !important;
        color: #ffffff !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border: 1px solid rgba(255,255,255,0.1);
    }
}

/* ---- Login poster (matches Daily Bazaar mockup) ---- */
body.auth-poster {
    background: url('../images/mobile-closed-bg.png') no-repeat center center fixed !important;
    background-size: cover !important;
}

.auth-page-wrapper--poster .auth-produce-scene {
    display: none;
}

.auth-leaf {
    position: absolute;
    width: 42px;
    height: 42px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%2327AE60' d='M52 8C28 10 12 28 10 52c24-2 40-20 42-44z'/%3E%3Cpath fill='%231E5E3E' d='M18 46c10-8 20-22 24-34-14 8-24 22-24 34z' opacity='.35'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.55;
    pointer-events: none;
    filter: blur(0.2px);
}

.auth-leaf-1 { top: 8%; left: 6%; transform: rotate(-18deg); }
.auth-leaf-2 { top: 18%; right: 8%; width: 34px; height: 34px; transform: rotate(22deg); opacity: 0.4; }
.auth-leaf-3 { top: 42%; left: 3%; width: 28px; height: 28px; transform: rotate(40deg); opacity: 0.35; }
.auth-leaf-4 { top: 36%; right: 4%; width: 36px; height: 36px; transform: rotate(-30deg); opacity: 0.45; }

@media (max-width: 991.98px) {
    body.auth-poster {
        background: url('../images/mobile-closed-bg.png') no-repeat center center fixed !important;
        background-size: cover !important;
    }

    body.auth-poster .auth-page-wrapper--poster {
        background: transparent;
    }

    .auth-page-wrapper--poster .auth-produce-scene {
        display: none;
    }

    body.auth-poster .auth-card--login-poster {
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-height: 100%;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.auth-poster .auth-card--login-poster .auth-form-side {
        background: transparent !important;
        position: relative;
        z-index: 2;
    }

    body.auth-poster .auth-card--login-poster .auth-mobile-inner {
        justify-content: flex-start;
        margin-top: 0;
        padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
        text-align: center;
    }

    body.auth-poster .auth-card--login-poster .auth-mobile-logo-wrap {
        display: block !important;
        padding: 0.35rem 0 0.15rem;
    }

    body.auth-poster .auth-card--login-poster .auth-mobile-logo {
        height: 108px !important;
        margin-bottom: 0.35rem;
    }

    body.auth-poster .auth-card--login-poster .auth-header {
        text-align: center;
        margin-bottom: 1.15rem;
    }

    body.auth-poster .auth-card--login-poster .auth-title {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 2.15rem !important;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 0.35rem;
    }

    body.auth-poster .auth-card--login-poster .auth-subtitle {
        font-size: 0.95rem !important;
        color: #8a8a8a;
    }

    body.auth-poster .auth-card--login-poster .auth-label {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #4a4a4a;
        margin-bottom: 0.4rem;
    }

    body.auth-poster .auth-card--login-poster .auth-input,
    body.auth-poster .auth-card--login-poster .auth-phone-field {
        min-height: 50px !important;
        background: #eef2f6;
        border: 0;
        border-radius: 12px;
    }

    body.auth-poster .auth-card--login-poster .auth-input {
        padding-top: 0.8rem !important;
        padding-bottom: 0.8rem !important;
        font-size: 0.95rem !important;
        background: #eef2f6;
    }

    body.auth-poster .auth-card--login-poster .auth-input:focus {
        background: #fff;
        box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
    }

    body.auth-poster .auth-forgot-link {
        display: block;
        text-align: center;
        margin: 0.15rem 0 1rem;
        color: #5c5c5c;
        font-weight: 600;
        font-size: 0.92rem;
    }

    body.auth-poster .auth-card--login-poster .auth-btn {
        min-height: 50px !important;
        border-radius: 14px;
        font-size: 1.05rem !important;
        background: linear-gradient(90deg, #3cb371 0%, #1e7a47 100%);
        box-shadow: 0 8px 18px rgba(30, 122, 71, 0.28);
    }

    body.auth-poster .auth-card--login-poster .auth-footer {
        border-top: none;
        margin-top: 0.85rem;
        padding-top: 0;
        color: #9aa3a0;
    }

    body.auth-poster .auth-card--login-poster .auth-footer a {
        color: #2f4f42;
        font-weight: 700;
    }

    body.auth-poster .auth-card--login-poster .auth-trust-row {
        position: relative;
        z-index: 3;
        margin-top: 1.25rem;
        gap: 0.5rem;
    }

    body.auth-poster .auth-card--login-poster .auth-trust-row span {
        background: rgba(40, 40, 40, 0.55) !important;
        color: #fff !important;
        padding: 6px 14px !important;
        border-radius: 999px !important;
        font-size: 0.72rem !important;
        font-weight: 600;
    }
}
