/* ==========================================================
   AUTH PAGE — Shoppy Store NP style split layout
   login.php / register.php  (scoped: .sh-auth-*)
   ========================================================== */

body { overflow-x: hidden; }

.auth-verification-page {
    min-height: calc(100vh - 200px);
    display: grid;
    place-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
}

.auth-verification-card {
    width: min(100%, 480px);
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.auth-verification-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: rgba(215, 25, 45, 0.12);
    color: #ef5965;
    font-size: 1.25rem;
}

.auth-verification-card h1 {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 1.45rem;
}

.auth-verification-card > p,
.auth-verification-card form > p {
    color: #b8c2d1;
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-verification-form {
    margin-top: 18px;
}

.auth-verification-form label {
    display: block;
    margin-bottom: 7px;
    color: #d8dee8;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
}

.otp-input-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.otp-input {
    width: 100%;
    min-width: 0;
    height: 54px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: #0b1220;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
}

.otp-input:focus {
    border-color: #60a5fa;
    outline: 2px solid rgba(96, 165, 250, 0.18);
    outline-offset: 1px;
}

.auth-verification-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
}

.auth-verification-link {
    border: 0;
    background: none;
    color: #93c5fd;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 480px) {
    .auth-verification-page {
        min-height: calc(100vh - 160px);
        padding: 18px 12px;
    }

    .auth-verification-card {
        padding: 20px 14px;
        border-radius: 14px;
    }

    .otp-input-grid {
        gap: 5px;
    }

    .otp-input {
        height: 48px;
        font-size: 1.1rem;
    }
}

footer.footer {
    margin-top: 0;
}

.sh-auth-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 68px);
    padding: 0 clamp(20px, 4vw, 64px);
    background: #0b0f1a;
    overflow: hidden;
}

/* ---------- LEFT: branding hero ---------- */
.sh-auth-hero {
    position: relative;
    flex: 1.2 1 0;
    min-width: 0;
    max-width: 800px;
    align-self: stretch;
    padding: clamp(40px, 5vh, 60px) clamp(32px, 4vw, 60px);
    background:
        radial-gradient(1000px 520px at 88% -12%, rgba(59, 130, 246, 0.30), transparent 62%),
        radial-gradient(820px 460px at -8% 112%, rgba(139, 92, 246, 0.28), transparent 62%),
        radial-gradient(640px 380px at 62% 118%, rgba(34, 211, 238, 0.15), transparent 62%),
        linear-gradient(160deg, #0b0f1a 0%, #0d1226 52%, #120e2e 100%);
    overflow: hidden;
}

.sh-auth-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse at 38% 32%, #000 18%, transparent 74%);
    mask-image: radial-gradient(ellipse at 38% 32%, #000 18%, transparent 74%);
    pointer-events: none;
}

.sh-auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.5;
}
.sh-auth-glow-a { top: -12%; right: -6%; width: 380px; height: 380px; background: rgba(59, 130, 246, 0.55); animation: shAuthFloat 13s ease-in-out infinite; }
.sh-auth-glow-b { bottom: -16%; left: -8%; width: 420px; height: 420px; background: rgba(139, 92, 246, 0.5); animation: shAuthFloat 16s ease-in-out infinite reverse; }

.sh-auth-float {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 700;
    animation: shAuthFloat 5s ease-in-out infinite;
}
.sh-auth-float-ico {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #22d3ee);
    color: #03270f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
}

.sh-auth-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 640px; display: flex; flex-direction: column; height: 100%; }

.sh-auth-logo { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.75rem; }
.sh-auth-logo img { height: 44px; width: auto; max-width: 190px; object-fit: contain; }
.sh-auth-logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}
.sh-auth-logo-name { color: #fff; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.4px; }

.sh-auth-users {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 500;
}
.sh-auth-users-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: shPulse 2s ease-in-out infinite;
}

.sh-auth-heading {
    color: #fff;
    font-size: clamp(1.85rem, 3.1vw, 2.9rem);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}
.sh-auth-heading em {
    font-style: normal;
    background: linear-gradient(92deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sh-auth-desc { color: #9aa3c0; font-size: 0.97rem; line-height: 1.7; max-width: 500px; margin-bottom: 2rem; }

.sh-auth-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; max-width: 580px; }
.sh-auth-cat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.sh-auth-cat:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, 0.55); background: rgba(255, 255, 255, 0.07); }
.sh-auth-cat-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(139, 92, 246, 0.28));
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
}
.sh-auth-cat strong { display: block; color: #e5e9ff; font-size: 0.85rem; font-weight: 700; margin-bottom: 1px; }
.sh-auth-cat > div span { display: block; color: #8b93ad; font-size: 0.73rem; }

.sh-auth-activity { margin-top: 0; padding-top: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sh-auth-activity-title { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.6px; color: #69708c; margin-bottom: 0.8rem; text-align: left; }
.sh-auth-activity-list { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.55rem; }
.sh-auth-activity-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(11, 15, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #c7cdea;
    font-size: 0.74rem;
    animation: shAuthFloat 6s ease-in-out infinite;
}
.sh-auth-activity-card:nth-child(2) { animation-delay: 0.8s; }
.sh-auth-activity-card:nth-child(3) { animation-delay: 1.6s; }
.sh-auth-activity-card:nth-child(4) { animation-delay: 2.4s; }
.sh-auth-activity-card i { color: #34d399; font-size: 0.72rem; }
.sh-auth-activity-card:nth-child(2) i { color: #22d3ee; }
.sh-auth-activity-card:nth-child(3) i { color: #a78bfa; }
.sh-auth-activity-card:nth-child(4) i { color: #fbbf24; }

.sh-auth-highlights { display: flex; flex-wrap: wrap; gap: 0.8rem 1.75rem; margin-top: auto; padding-top: 2.5rem; }
.sh-auth-highlight { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: #c3c9e6; }
.sh-auth-highlight i {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
}

/* ---------- RIGHT: form zone ---------- */
.sh-auth-zone {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 660px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vh, 44px) clamp(24px, 3vw, 60px);
    background:
        radial-gradient(560px 380px at 100% 0%, rgba(59, 130, 246, 0.13), transparent 60%),
        radial-gradient(480px 340px at 0% 100%, rgba(139, 92, 246, 0.1), transparent 60%),
        #0b0f1a;
}

.sh-auth-stack {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Free info section (glass strip inside the left hero) */
.sh-auth-strip {
    width: 100%;
    max-width: 580px;
    margin: 1.75rem 0 0;
    padding: 1rem 1.15rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.sh-auth-strip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.sh-auth-card {
    position: relative;
    width: 100%;
    max-width: 424px;
    min-width: 0;
    padding: 1.4rem 1.75rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 60px rgba(59, 130, 246, 0.07);
    animation: shAuthCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sh-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    min-width: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    margin-bottom: 0.85rem;
}
.sh-auth-tab {
    border: none;
    background: transparent;
    color: #8b93ad;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.68rem 0.5rem;
    min-width: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}
.sh-auth-tab:hover { color: #e5e9ff; }
.sh-auth-tab.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent, #2563eb), #3b82f6);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.sh-auth-pane { display: none; min-width: 0; }
.sh-auth-pane.active { display: block; animation: shPaneIn 0.35s ease both; }

.sh-auth-head { margin: 0; padding: 0; }
.sh-auth-head h1 { color: var(--text-primary, #fff); font-size: 1.4rem; font-weight: 800; margin: 0; letter-spacing: -0.3px; }
.sh-auth-head p { color: var(--text-secondary, #8b93ad); font-size: 0.85rem; line-height: 1.5; margin: 0; }

.sh-auth-pane form { margin: 0; padding: 0; }

.sh-auth-pane .alert { font-size: 0.8rem; padding: 0.65rem 0.85rem; }

.sh-auth-field { margin-bottom: 0.8rem; min-width: 0; }
.sh-auth-field.has-error { margin-bottom: 0.4rem; }
.sh-auth-field-error {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #f87171;
    line-height: 1.4;
}
.sh-auth-field-error i { font-size: 0.7rem; }
.sh-auth-input .form-input.is-invalid { border-color: rgba(248, 113, 113, 0.7); }

.sh-auth-modal { max-width: 420px; padding: 1.6rem; }
.sh-auth-modal .modal-header { margin-bottom: 0.4rem; }
.sh-auth-modal .modal-header h3 { display: flex; align-items: center; font-size: 1.05rem; }
.sh-auth-modal-body { margin-bottom: 1.4rem; }
.sh-auth-modal-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-primary, #e6e9f5);
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}
.sh-auth-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
.sh-auth-modal-actions .btn-primary { min-height: 42px; padding: 0.6rem 1.3rem; }
.sh-auth-label { display: block; font-size: 0.78rem; font-weight: 600; color: #a7aecb; margin-bottom: 0.35rem; }
.sh-auth-label .req { color: #60a5fa; }
.sh-auth-input { position: relative; }
.sh-auth-input .f-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #5f6782;
    font-size: 0.85rem;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
    transition: color 0.25s ease;
}
.sh-auth-input .form-input {
    width: 100%;
    height: 48px;
    min-width: 0;
    padding: 0 3rem 0 2.7rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.sh-auth-input .form-input::placeholder { color: #5b637f; }
.sh-auth-input .form-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18); background: rgba(255, 255, 255, 0.08); }
.sh-auth-input:focus-within .f-icon { color: #60a5fa; }
.sh-auth-input .password-toggle {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.4rem;
    transition: color 0.25s ease;
}
.sh-auth-input .password-toggle:hover { color: #93c5fd; }

.sh-auth-referral-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}
.sh-auth-referral-row .sh-auth-input {
    flex: 1 1 auto;
    min-width: 0;
}
.sh-auth-referral-row .form-input {
    padding-right: 0.9rem;
}
.sh-auth-referral-verify {
    display: inline-flex;
    min-width: 92px;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.13);
    color: #bfdbfe;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sh-auth-referral-verify:hover:not(:disabled) {
    border-color: rgba(96, 165, 250, 0.65);
    background: rgba(59, 130, 246, 0.22);
    color: #ffffff;
}
.sh-auth-referral-verify:disabled {
    cursor: wait;
    opacity: 0.7;
}
.sh-auth-referral-status {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
}
.sh-auth-referral-status:empty {
    display: none;
}
.sh-auth-referral-status.is-success {
    color: #4ade80;
}
.sh-auth-referral-status.is-error {
    color: #f87171;
}
.sh-auth-referral-status.is-pending {
    color: #93c5fd;
}

.sh-auth-forgot-row { display: flex; justify-content: flex-end; margin: 0.15rem 0 0.9rem; }
.sh-auth-forgot { color: #60a5fa; font-size: 0.8rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.sh-auth-forgot:hover { text-decoration: underline; }

.sh-auth-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent, #2563eb) 0%, #2563eb 55%, #7c3aed 130%);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.sh-auth-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45); filter: brightness(1.08); }
.sh-auth-submit:active { transform: translateY(0); }

.sh-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1.05rem 0;
    color: #5b637f;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.sh-auth-divider::before, .sh-auth-divider::after { content: ""; height: 1px; flex: 1; background: rgba(255, 255, 255, 0.09); }

.sh-auth-google {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #e5e9ff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.sh-auth-google:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); transform: translateY(-1px); }
.sh-auth-google i { font-size: 1.05rem; color: #fff; }

.sh-auth-switch { text-align: center; color: #8b93ad; font-size: 0.84rem; margin: 0.55rem 0 0.15rem; }
.sh-auth-switch a { color: #60a5fa; font-weight: 700; text-decoration: none; }
.sh-auth-switch a:hover { text-decoration: underline; }

.sh-auth-security {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.9rem 1.2rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sh-auth-security span { display: inline-flex; align-items: center; gap: 0.35rem; color: #69708c; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.3px; }
.sh-auth-security i { color: #34d399; font-size: 0.7rem; }

/* ---------- animations ---------- */
@keyframes shAuthFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes shPaneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shAuthCardIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
    .sh-auth-wrap { padding: 0 clamp(16px, 3vw, 40px); }
    .sh-auth-zone { padding-left: clamp(24px, 3vw, 40px); padding-right: clamp(24px, 3vw, 40px); }
    .sh-auth-tab { font-size: 0.8rem; padding: 0.65rem 0.35rem; }
}

@media (min-width: 992px) {
    .sh-auth-wrap {
        background:
            linear-gradient(110deg, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0.12) 58%, rgba(59, 130, 246, 0.08) 100%),
            radial-gradient(1000px 520px at 88% -12%, rgba(59, 130, 246, 0.30), transparent 62%),
            radial-gradient(820px 460px at -8% 112%, rgba(139, 92, 246, 0.28), transparent 62%),
            radial-gradient(640px 380px at 62% 118%, rgba(34, 211, 238, 0.15), transparent 62%),
            linear-gradient(160deg, #0b0f1a 0%, #0d1226 52%, #120e2e 100%);
    }

    .sh-auth-hero,
    .sh-auth-zone {
        background: transparent;
    }

    .sh-auth-zone {
        align-items: flex-start;
    }

    .sh-auth-glow {
        display: none;
    }
}

@media (max-width: 991px) {
    .sh-auth-wrap { min-height: calc(100vh - var(--store-header-height, 76px)); flex-direction: column; justify-content: center; padding: 0; }
    .sh-auth-zone { order: -1; width: 100%; flex: 1 0 auto; max-width: none; align-self: auto; align-items: center; padding: 1rem; }
    .sh-auth-stack { margin: 0 auto; }
    .sh-auth-card { padding: 1.25rem 1.25rem 1.3rem; }
    .sh-auth-head h1 { font-size: 1.3rem; }
    .sh-auth-hero { display: none; }
}

@media (max-width: 768px) {
    .sh-auth-wrap {
        min-height: calc(100vh - var(--store-header-height, 76px) - 68px - env(safe-area-inset-bottom, 0px));
        min-height: calc(100dvh - var(--store-header-height, 76px) - 68px - env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 600px) {
    .sh-auth-wrap {
        overflow: visible;
    }

    .sh-auth-zone {
        padding: 0.75rem;
    }

    .sh-auth-stack {
        max-width: 460px;
    }

    .sh-auth-card {
        max-width: none;
        padding: 1.35rem clamp(1rem, 4vw, 1.45rem) 1.3rem;
        border-radius: 22px;
    }

    .sh-auth-tabs {
        gap: 4px;
        margin-bottom: 1rem;
    }

    .sh-auth-tab {
        min-height: 46px;
        gap: 0.3rem;
        padding: 0.68rem 0.25rem;
        font-size: clamp(0.72rem, 3.6vw, 0.86rem);
        line-height: 1.2;
    }

    .sh-auth-head h1 {
        font-size: 1.45rem;
    }

    .sh-auth-field {
        margin-bottom: 0.95rem;
    }

    .sh-auth-input .form-input {
        min-height: 50px;
        font-size: 16px;
    }

    .sh-auth-submit {
        height: 54px;
    }

    .sh-auth-divider {
        margin: 1rem 0;
    }

    .sh-auth-security {
        gap: 0.6rem 0.85rem;
        margin-top: 1rem;
        padding-top: 0.85rem;
    }
}

@media (max-width: 400px) {
    .sh-auth-zone { padding: 0.6rem; }
    .sh-auth-card { padding: 1.15rem 0.95rem 1.2rem; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .sh-auth-hero *, .sh-auth-float, .sh-auth-glow, .sh-auth-card, .sh-auth-activity-card { animation: none !important; }
}
