/* Auth Specific Styles (Login/Register) */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(circle at top right, #f8f9fa 0%, #e9ecef 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.auth-header {
    background: linear-gradient(135deg, #E85D24 0%, #cc4e1b 100%);
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.auth-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 2rem;
}

.auth-body {
    padding: 2.5rem 2rem;
    background: #fff;
}

.auth-input {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 2px solid #f1f3f5;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.auth-input:focus {
    border-color: #E85D24;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232,93,36,0.12);
}

.auth-label {
    font-weight: 700;
    font-size: 0.82rem;
    color: #495057;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-btn {
    padding: 1rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(232,93,36,0.3);
}

.input-group-icon {
    position: relative;
}

.input-group-icon .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    z-index: 2;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-group-icon .auth-input {
    padding-left: 3.2rem !important;
}

.toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    z-index: 2;
    padding: 5px;
    font-size: 1.2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 2rem 0;
    color: #adb5bd;
    font-size: 0.8rem;
    font-weight: 600;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: #f1f3f5;
}

/* ── Mobile: auth pages render as a focused, single-task screen ──
   Signing in is a dedicated task, so the shop chrome that normally wraps
   every page (mobile search row, category strip, bottom tab bar) is stood
   down here — together they ate ~270px of an 844px viewport, which squeezed
   the form and pushed the register CTA behind the fixed bottom nav. The
   header's logo/account/cart row and the hamburger menu stay, so nothing is
   actually unreachable. Desktop is untouched. */
@media (max-width: 767.98px) {
    body.auth-page .mobile-search-row,
    body.auth-page .mobile-category-strip,
    body.auth-page .mobile-bottom-nav {
        display: none !important;
    }

    /* Space reserved for the now-hidden bottom nav isn't needed here. */
    body.auth-page {
        padding-bottom: 0 !important;
    }

    /* The banner normally floats above the bottom nav; with no nav on this
       screen it would leave a 60px gap under itself. */
    body.auth-page #cookie-consent-banner {
        bottom: 0 !important;
    }

    /* min-height:80vh + centered flex used to push the submit button into the
       band covered by the cookie-consent banner (z-index 9999), so the first
       tap landed on the banner instead of the button. Flow from the top and
       keep enough bottom room to clear the banner when it's showing. */
    .auth-wrapper {
        min-height: auto;
        align-items: flex-start;
        padding: 1.25rem 1rem 7rem;
    }

    /* Tighter card so more of the form is visible without scrolling. */
    .auth-header {
        padding: 1.5rem 1.25rem;
    }

    .auth-icon {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
        border-radius: 16px;
        margin-bottom: 0.5rem !important;
    }

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

    .auth-body {
        padding: 1.5rem 1.25rem;
    }

    .auth-divider {
        margin: 1.25rem 0;
    }
}
