/*
 * SpeedaCure Authentication V4
 * Customer-facing custom design system.
 * Bootstrap deliberately not used here.
 */

:root {
    --sc-auth-green: #128a58;
    --sc-auth-green-dark: #0d7047;
    --sc-auth-green-soft: #eaf7f0;
    --sc-auth-text: #17231e;
    --sc-auth-muted: #66746d;
    --sc-auth-border: #dce6e1;
    --sc-auth-bg: #f4f8f6;
    --sc-auth-surface: #ffffff;
    --sc-auth-danger: #b42318;
    --sc-auth-radius: 18px;
}

body {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(18,138,88,.10),
            transparent 35rem
        ),
        var(--sc-auth-bg);
}

.sc-account {
    width: min(100%, 1120px);
    margin-inline: auto;
    padding: 24px 18px 64px;
    box-sizing: border-box;
}

/*
 * Guest account page only.
 */
body.sc-auth-v4-active .sc-account {
    width: min(100%, 560px);
    min-height: 100vh;
    padding-top: 24px;
}

.sc-auth-v4-shell {
    width: 100%;
}

.sc-auth-v4-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-bottom: 14px;
    color: #52645b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sc-auth-v4-back:hover {
    color: var(--sc-auth-green);
}

.sc-auth-v4-card {
    background: var(--sc-auth-surface);
    border: 1px solid rgba(20,60,42,.08);
    border-radius: 24px;
    box-shadow:
        0 24px 70px rgba(30,67,51,.11),
        0 3px 10px rgba(30,67,51,.05);
    overflow: hidden;
}

.sc-auth-v4-brand {
    padding: 30px 30px 20px;
    text-align: center;
}

.sc-auth-v4-logo {
    display: block;
    width: auto;
    max-width: 210px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.sc-auth-v4-brand h1 {
    margin: 0;
    color: var(--sc-auth-text);
    font-size: clamp(25px, 5vw, 32px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.sc-auth-v4-brand p {
    max-width: 420px;
    margin: 10px auto 0;
    color: var(--sc-auth-muted);
    line-height: 1.55;
    font-size: 14.5px;
}

.sc-auth-v4-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: 0 24px;
    padding: 5px;
    border-radius: 13px;
    background: #eff4f1;
}

.sc-auth-v4-tab {
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5a6962;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition:
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.sc-auth-v4-tab.is-active {
    background: #fff;
    color: var(--sc-auth-green);
    box-shadow: 0 3px 12px rgba(31,72,54,.09);
}

.sc-auth-v4-panel {
    padding: 28px 30px 32px;
}

.sc-auth-v4-panel[hidden] {
    display: none !important;
}

.sc-auth-v4-panel h2 {
    margin: 0 0 5px;
    color: var(--sc-auth-text);
    font-size: 21px;
}

.sc-auth-v4-subtitle {
    margin: 0 0 22px;
    color: var(--sc-auth-muted);
    font-size: 14px;
    line-height: 1.5;
}

.sc-auth-v4-panel form {
    display: grid;
    gap: 8px;
}

.sc-auth-v4-panel label {
    display: block;
    margin-top: 7px;
    color: #34453d;
    font-size: 13.5px;
    font-weight: 800;
}

.sc-auth-v4-panel input:not([type="hidden"]) {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid var(--sc-auth-border);
    border-radius: 11px;
    background: #fff;
    color: var(--sc-auth-text);
    font: inherit;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.sc-auth-v4-panel input:hover {
    border-color: #baccc3;
}

.sc-auth-v4-panel input:focus {
    border-color: var(--sc-auth-green);
    box-shadow:
        0 0 0 4px rgba(18,138,88,.12);
}

.sc-auth-v4-password {
    position: relative;
}

.sc-auth-v4-password input {
    padding-right: 52px !important;
}

.sc-auth-v4-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #627168;
    transform: translateY(-50%);
    cursor: pointer;
}

.sc-auth-v4-eye:hover {
    background: #f1f6f3;
    color: var(--sc-auth-green);
}

.sc-auth-v4-eye svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.sc-auth-v4-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: 1px 0 7px;
}

.sc-auth-v4-link-button {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--sc-auth-green);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.sc-auth-v4-link-button:hover {
    text-decoration: underline;
}

.sc-auth-v4-primary {
    width: 100%;
    min-height: 54px;
    margin-top: 10px;
    border: 0;
    border-radius: 11px;
    background: var(--sc-auth-green);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(18,138,88,.18);
    transition:
        background .17s ease,
        transform .17s ease,
        box-shadow .17s ease;
}

.sc-auth-v4-primary:hover {
    background: var(--sc-auth-green-dark);
    box-shadow: 0 10px 24px rgba(18,138,88,.24);
}

.sc-auth-v4-primary:active {
    transform: translateY(1px);
}

.sc-auth-v4-help {
    margin: 4px 0 0;
    color: var(--sc-auth-muted);
    font-size: 12.5px;
}

.sc-auth-v4-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 15px;
    color: #8a9791;
    font-size: 12px;
    font-weight: 700;
}

.sc-auth-v4-divider::before,
.sc-auth-v4-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4ebe7;
}

.sc-auth-v4-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 52px;
    padding: 11px 16px;
    border: 1px solid #dce4e0;
    border-radius: 11px;
    background: #fff;
    color: #26352e;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.sc-auth-v4-google[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .72;
}

.sc-auth-v4-google svg {
    width: 20px;
    height: 20px;
}

.sc-auth-v4-message {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--sc-auth-green-soft);
    color: #315843;
    font-size: 13px;
    line-height: 1.45;
}

.sc-auth-v4-server-error,
body.sc-auth-v4-active .sc-account > .err {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #f2c7c3;
    border-radius: 11px;
    background: #fff3f2;
    color: var(--sc-auth-danger);
    font-size: 14px;
}

body.sc-auth-v4-active
.sc-account > p:first-child,

body.sc-auth-v4-active
.sc-account > h1,

body.sc-auth-v4-active
.sc-account > h1 + p {
    display: none;
}

/*
 * Existing cards are reused, not duplicated.
 */
body.sc-auth-v4-active .sc-account-grid {
    display: block !important;
    width: 100%;
    margin: 0 !important;
}

body.sc-auth-v4-active .sc-account-card {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.sc-auth-v4-active .sc-account-card > h2 {
    display: none;
}

@media (max-width: 600px) {

    body.sc-auth-v4-active .sc-account {
        padding: 14px 12px 40px;
    }

    .sc-auth-v4-card {
        border-radius: 19px;
    }

    .sc-auth-v4-brand {
        padding:
            24px
            20px
            17px;
    }

    .sc-auth-v4-tabs {
        margin:
            0
            15px;
    }

    .sc-auth-v4-panel {
        padding:
            23px
            18px
            25px;
    }

    .sc-auth-v4-logo {
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* =========================================================
   SPEEDACURE AUTH V4 R2
   GOOGLE + FACEBOOK
   ========================================================= */

.sc-auth-v4-social {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}


.sc-auth-v4-social-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;
    min-height: 52px;

    box-sizing: border-box;

    padding: 10px 16px;

    border: 1px solid #dce4e0;
    border-radius: 11px;

    background: #fff;

    color: #26352e;

    font: inherit;
    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}


.sc-auth-v4-social-button:hover {
    border-color: #b9ccc3;

    background: #fbfdfc;

    box-shadow:
        0 4px 13px
        rgba(24,62,45,.07);

    transform: translateY(-1px);
}


.sc-auth-v4-social-button:focus-visible {
    outline: 0;

    box-shadow:
        0 0 0 4px
        rgba(18,138,88,.12);
}


.sc-auth-v4-google-mark,
.sc-auth-v4-facebook-mark {
    width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 22px;

    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}


.sc-auth-v4-google-mark {
    font-family:
        Arial,
        sans-serif;

    color: #4285f4;
}


.sc-auth-v4-facebook-mark {
    border-radius: 50%;

    background: #1877f2;

    color: #fff;

    font-family:
        Arial,
        sans-serif;

    font-size: 18px;
}


/*
 * Old Google-only styling remains harmless,
 * but canonical R2 buttons use social-button.
 */

.sc-auth-v4-google {
    text-decoration: none;
}


.sc-auth-v4-facebook {
    text-decoration: none;
}


@media (max-width: 600px) {

    .sc-auth-v4-social-button {
        min-height: 50px;
    }
}


/* =========================================================
   SPEEDACURE AUTH V5
   Compact, mobile-first customer authentication
   ========================================================= */

body.sc-auth-v4-active {
    min-height: 100dvh;
}


body.sc-auth-v4-active .sc-account {
    width: min(100%, 480px);

    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        max(12px, env(safe-area-inset-top))
        14px
        max(12px, env(safe-area-inset-bottom));

    box-sizing: border-box;
}


.sc-auth-v4-shell {
    width: 100%;
}


.sc-auth-v4-back {
    min-height: 30px;
    margin: 0 0 6px;

    font-size: 12px;
}


.sc-auth-v4-card {
    width: 100%;

    border-radius: 20px;

    box-shadow:
        0 18px 48px rgba(24, 63, 46, .11),
        0 2px 8px rgba(24, 63, 46, .04);
}


.sc-auth-v4-brand {
    padding: 18px 24px 13px;
}


.sc-auth-v4-logo {
    height: 34px;
    max-width: 170px;

    margin-bottom: 10px;
}


.sc-auth-v4-brand h1 {
    font-size: clamp(22px, 4.8vw, 27px);
    line-height: 1.1;
}


.sc-auth-v4-brand p {
    margin-top: 6px;

    font-size: 12.5px;
    line-height: 1.4;
}


.sc-auth-v4-tabs {
    margin: 0 18px;

    min-height: 42px;

    padding: 4px;
}


.sc-auth-v4-tab {
    min-height: 38px;

    padding: 7px 10px;

    font-size: 13.5px;
}


.sc-auth-v4-panel {
    padding: 18px 24px 21px;
}


.sc-auth-v4-panel h2 {
    margin-bottom: 3px;

    font-size: 19px;
}


.sc-auth-v4-subtitle {
    margin-bottom: 12px;

    font-size: 12.5px;
}


.sc-auth-v4-panel form {
    gap: 5px;
}


.sc-auth-v4-panel label {
    margin-top: 5px;

    font-size: 11.5px;
}


.sc-auth-v4-panel input:not([type="hidden"]) {
    min-height: 44px;

    padding: 10px 12px;

    border-radius: 9px;

    font-size: 14px;
}


.sc-auth-v4-password input {
    padding-right: 45px !important;
}


.sc-auth-v4-eye {
    right: 3px;

    width: 38px;
    height: 38px;
}


.sc-auth-v4-eye svg {
    width: 18px;
    height: 18px;
}


.sc-auth-v4-forgot-row {
    margin: 0 0 3px;
}


.sc-auth-v4-link-button {
    padding: 2px 0;

    font-size: 11.5px;
}


.sc-auth-v4-primary {
    min-height: 46px;

    margin-top: 6px;

    border-radius: 9px;

    font-size: 13.5px;

    box-shadow:
        0 6px 16px
        rgba(18, 138, 88, .16);
}


.sc-auth-v4-divider {
    margin: 13px 0 11px;

    gap: 9px;

    font-size: 10.5px;
}


.sc-auth-v4-social {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;
}


.sc-auth-v4-social-button {
    min-width: 0;
    min-height: 44px;

    padding: 8px 10px;

    border-radius: 9px;

    gap: 7px;

    font-size: 12px;

    white-space: nowrap;
}


.sc-auth-v4-google-mark,
.sc-auth-v4-facebook-mark {
    width: 19px;
    height: 19px;

    flex-basis: 19px;

    font-size: 14px;
}


.sc-auth-v4-facebook-mark {
    font-size: 15px;
}


.sc-auth-v4-message {
    margin-top: 7px;

    padding: 8px 10px;

    font-size: 11.5px;
}


/*
 * Mobile phones
 */

@media (max-width: 520px) {

    body.sc-auth-v4-active .sc-account {
        width: 100%;

        padding:
            max(7px, env(safe-area-inset-top))
            9px
            max(7px, env(safe-area-inset-bottom));
    }


    .sc-auth-v4-back {
        display: none;
    }


    .sc-auth-v4-card {
        border-radius: 17px;
    }


    .sc-auth-v4-brand {
        padding:
            14px
            16px
            10px;
    }


    .sc-auth-v4-logo {
        height: 29px;

        margin-bottom: 7px;
    }


    .sc-auth-v4-brand h1 {
        font-size: 21px;
    }


    .sc-auth-v4-brand p {
        margin-top: 4px;

        font-size: 11.5px;
    }


    .sc-auth-v4-tabs {
        margin: 0 10px;
    }


    .sc-auth-v4-tab {
        min-height: 36px;

        font-size: 12.5px;
    }


    .sc-auth-v4-panel {
        padding:
            14px
            16px
            16px;
    }


    .sc-auth-v4-panel h2 {
        font-size: 17px;
    }


    .sc-auth-v4-subtitle {
        margin-bottom: 8px;

        font-size: 11.5px;
    }


    .sc-auth-v4-panel input:not([type="hidden"]) {
        min-height: 42px;
    }


    .sc-auth-v4-primary {
        min-height: 44px;
    }


    .sc-auth-v4-divider {
        margin: 10px 0 8px;
    }


    .sc-auth-v4-social-button {
        min-height: 42px;

        padding-inline: 7px;

        font-size: 11px;
    }
}


/*
 * Very narrow phones:
 * social buttons stack only when actually needed.
 */

@media (max-width: 355px) {

    .sc-auth-v4-social {
        grid-template-columns: 1fr;
    }
}


/*
 * Short mobile screens.
 * Reduce vertical consumption further.
 */

@media (max-height: 720px) and (max-width: 520px) {

    .sc-auth-v4-brand {
        padding-top: 9px;
        padding-bottom: 7px;
    }


    .sc-auth-v4-logo {
        height: 25px;

        margin-bottom: 5px;
    }


    .sc-auth-v4-brand h1 {
        font-size: 19px;
    }


    .sc-auth-v4-brand p {
        display: none;
    }


    .sc-auth-v4-panel {
        padding-top: 11px;
        padding-bottom: 12px;
    }


    .sc-auth-v4-subtitle {
        display: none;
    }


    .sc-auth-v4-divider {
        margin:
            8px
            0
            7px;
    }
}

/* =========================================================
   SPEEDACURE AUTH QUICK FIX 2026-09-09
   ========================================================= */

body.sc-auth-v4-active {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 12% 15%, rgba(26,122,76,.13), transparent 28rem),
        radial-gradient(circle at 88% 85%, rgba(26,122,76,.08), transparent 24rem),
        linear-gradient(135deg,#eef8f2 0%,#f9fcfa 50%,#edf7f1 100%);
}

body.sc-auth-v4-active .sc-account {
    width: min(100%, 1040px);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sc-auth-v4-shell {
    width: 100%;
}

.sc-auth-v4-back {
    display: none !important;
}

.sc-auth-v4-card {
    width: 100%;
    min-height: 620px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    border: 1px solid rgba(26,122,76,.08);
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 24px 70px rgba(24,73,49,.13),
        0 5px 18px rgba(24,73,49,.05);
}

/* Left brand panel */
.sc-auth-v4-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 52px 44px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.14), transparent 17rem),
        linear-gradient(150deg,#1a7a4c 0%,#12633d 55%,#0d4f31 100%);
}

.sc-auth-v4-logo {
    height: 48px;
    max-width: 190px;
    margin: 0 0 28px;
    filter: brightness(0) invert(1);
}

.sc-auth-v4-brand h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px,4vw,42px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.sc-auth-v4-brand p {
    margin: 16px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.6;
}

/* Trust points generated visually */
.sc-auth-v4-brand::after {
    content:
        "✓  Genuine medicines\A"
        "⚡  Fast delivery\A"
        "🔒  Secure checkout";
    white-space: pre-line;
    display: block;
    margin-top: 28px;
    color: rgba(255,255,255,.95);
    font-size: 14px;
    font-weight: 700;
    line-height: 2.6;
}

/* Put tabs + panels in right column */
.sc-auth-v4-tabs,
.sc-auth-v4-panel {
    grid-column: 2;
}

.sc-auth-v4-tabs {
    align-self: end;
    margin: 38px 38px 0;
    padding: 5px;
    border-radius: 13px;
    background: #edf3ef;
}

.sc-auth-v4-tab {
    min-height: 44px;
    border-radius: 9px;
    color: #65756c;
}

.sc-auth-v4-tab.is-active {
    background: #1a7a4c;
    color: #fff;
    box-shadow: 0 5px 14px rgba(26,122,76,.22);
}

.sc-auth-v4-panel {
    align-self: start;
    padding: 24px 38px 38px;
}

.sc-auth-v4-panel h2 {
    margin-bottom: 4px;
    font-size: 24px;
}

.sc-auth-v4-subtitle {
    margin-bottom: 18px;
    font-size: 13px;
}

.sc-auth-v4-panel form {
    gap: 5px;
}

.sc-auth-v4-panel label {
    margin-top: 5px;
    font-size: 12px;
}

.sc-auth-v4-panel input:not([type="hidden"]) {
    min-height: 48px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #f7faf8;
    font-size: 14px;
}

.sc-auth-v4-panel input:not([type="hidden"]):focus {
    background: #fff;
    border-color: #1a7a4c;
    box-shadow: 0 0 0 4px rgba(26,122,76,.11);
}

.sc-auth-v4-password input {
    padding-right: 48px !important;
}

.sc-auth-v4-eye {
    right: 5px;
    width: 38px;
    height: 38px;
}

.sc-auth-v4-forgot-row {
    margin: 0 0 5px;
}

.sc-auth-v4-link-button {
    font-size: 12px;
}

.sc-auth-v4-primary {
    min-height: 49px;
    margin-top: 7px;
    border-radius: 10px;
    background: #1a7a4c;
}

.sc-auth-v4-primary:hover {
    background: #12633d;
}

/* Secure note */
.sc-auth-v4-primary::before {
    content: "";
}

.sc-auth-v4-divider {
    margin: 17px 0 13px;
}

.sc-auth-v4-social {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.sc-auth-v4-social-button {
    min-height: 46px;
    border-radius: 10px;
    font-size: 12px;
}

/* Mobile */
@media (max-width: 760px) {

    body.sc-auth-v4-active .sc-account {
        width: 100%;
        padding: 8px;
        align-items: center;
    }

    .sc-auth-v4-card {
        min-height: auto;
        display: block;
        border-radius: 18px;
    }

    .sc-auth-v4-brand {
        padding: 18px 18px 14px;
        align-items: center;
        text-align: center;
    }

    .sc-auth-v4-logo {
        height: 32px;
        margin-bottom: 9px;
        filter: none;
    }

    .sc-auth-v4-brand h1 {
        font-size: 21px;
    }

    .sc-auth-v4-brand p {
        margin-top: 5px;
        font-size: 11.5px;
    }

    .sc-auth-v4-brand::after {
        display: none;
    }

    .sc-auth-v4-tabs {
        margin: 12px 12px 0;
    }

    .sc-auth-v4-tab {
        min-height: 38px;
        font-size: 12.5px;
    }

    .sc-auth-v4-panel {
        padding: 15px 16px 17px;
    }

    .sc-auth-v4-panel h2 {
        font-size: 18px;
    }

    .sc-auth-v4-subtitle {
        margin-bottom: 10px;
        font-size: 11.5px;
    }

    .sc-auth-v4-panel input:not([type="hidden"]) {
        min-height: 43px;
    }

    .sc-auth-v4-primary {
        min-height: 44px;
    }

    .sc-auth-v4-divider {
        margin: 11px 0 9px;
    }

    .sc-auth-v4-social-button {
        min-height: 42px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .sc-auth-v4-social {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 700px) and (max-width:760px) {

    .sc-auth-v4-brand {
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .sc-auth-v4-brand p {
        display: none;
    }

    .sc-auth-v4-panel {
        padding-top: 11px;
        padding-bottom: 12px;
    }

    .sc-auth-v4-subtitle {
        display: none;
    }
}

.sc-auth-v4-secure-note {
    margin: 4px 0 2px;
    color: #75857d;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   SPEEDACURE AUTH GRID ALIGNMENT FIX
   ========================================================= */

@media (min-width: 761px) {

    .sc-auth-v4-card {
        grid-template-columns: 0.9fr 1.1fr;
        grid-template-rows: auto 1fr;
        align-items: stretch;
    }

    .sc-auth-v4-brand {
        grid-column: 1;
        grid-row: 1 / span 2;
        min-height: 620px;
    }

    .sc-auth-v4-tabs {
        grid-column: 2;
        grid-row: 1;

        align-self: end;

        margin:
            54px
            38px
            0;
    }

    .sc-auth-v4-panel {
        grid-column: 2;
        grid-row: 2;

        align-self: start;

        padding:
            24px
            38px
            38px;
    }
}


/* =========================================================
   SPEEDACURE MOBILE AUTH FINAL TIGHTENING
   ========================================================= */

@media (max-width: 760px) {

    body.sc-auth-v4-active {
        min-height: 100dvh;
        overflow-x: hidden;
    }

    body.sc-auth-v4-active .sc-account {
        width: 100%;
        min-height: auto;

        padding:
            6px
            6px
            14px;

        align-items: flex-start;
    }

    .sc-auth-v4-shell {
        width: 100%;
    }

    .sc-auth-v4-card {
        width: 100%;
        min-height: auto;

        margin: 0;

        border-radius: 18px;
    }

    /* Compact mobile brand */
    .sc-auth-v4-brand {
        min-height: auto !important;

        padding:
            14px
            16px
            13px;

        border-radius:
            18px
            18px
            0
            0;
    }

    .sc-auth-v4-logo {
        height: 28px;
        max-width: 150px;

        margin-bottom: 8px;

        filter: brightness(0) invert(1);
        opacity: 1;
    }

    .sc-auth-v4-brand h1 {
        max-width: 330px;

        font-size: 22px;
        line-height: 1.1;

        text-align: center;
    }

    .sc-auth-v4-brand p,
    .sc-auth-v4-brand::after {
        display: none;
    }

    /* Tabs */
    .sc-auth-v4-tabs {
        margin:
            10px
            10px
            0;

        min-height: 40px;

        padding: 4px;
    }

    .sc-auth-v4-tab {
        min-height: 36px;

        padding: 6px 8px;

        font-size: 13px;
    }

    /* Form */
    .sc-auth-v4-panel {
        padding:
            14px
            14px
            15px;
    }

    .sc-auth-v4-panel h2 {
        margin-bottom: 2px;

        font-size: 18px;
    }

    .sc-auth-v4-subtitle {
        margin-bottom: 8px;

        font-size: 11.5px;
    }

    .sc-auth-v4-panel form {
        gap: 3px;
    }

    .sc-auth-v4-panel label {
        margin-top: 3px;
        margin-bottom: 3px;

        font-size: 11.5px;
    }

    .sc-auth-v4-panel input:not([type="hidden"]) {
        min-height: 42px;

        padding:
            9px
            11px;

        font-size: 13px;

        border-radius: 9px;
    }

    .sc-auth-v4-password input {
        padding-right: 44px !important;
    }

    .sc-auth-v4-eye {
        width: 35px;
        height: 35px;

        right: 4px;
    }

    .sc-auth-v4-eye svg {
        width: 17px;
        height: 17px;
    }

    .sc-auth-v4-forgot-row {
        margin:
            0
            0
            3px;
    }

    .sc-auth-v4-link-button {
        font-size: 11.5px;
    }

    .sc-auth-v4-secure-note {
        margin:
            2px
            0
            1px;

        font-size: 10.5px;
    }

    .sc-auth-v4-primary {
        min-height: 43px;

        margin-top: 4px;

        font-size: 13px;

        border-radius: 9px;
    }

    /* Divider */
    .sc-auth-v4-divider {
        margin:
            10px
            0
            8px;

        font-size: 10px;
    }

    /* Put Google + Facebook side-by-side on normal phones */
    .sc-auth-v4-social {
        grid-template-columns:
            1fr
            1fr;

        gap: 7px;
    }

    .sc-auth-v4-social-button {
        min-height: 40px;

        padding:
            7px
            6px;

        gap: 5px;

        font-size: 10.5px;

        white-space: nowrap;
    }

    .sc-auth-v4-google-mark,
    .sc-auth-v4-facebook-mark {
        width: 18px;
        height: 18px;

        flex-basis: 18px;

        font-size: 13px;
    }

    .sc-auth-v4-facebook-mark {
        font-size: 14px;
    }
}


/* Very narrow phones only */
@media (max-width: 360px) {

    .sc-auth-v4-social {
        grid-template-columns: 1fr;
    }

    .sc-auth-v4-social-button {
        font-size: 11px;
    }
}


/* Short-height phones */
@media (max-width: 760px) and (max-height: 720px) {

    .sc-auth-v4-brand {
        padding:
            9px
            12px
            8px;
    }

    .sc-auth-v4-logo {
        height: 23px;

        margin-bottom: 4px;
    }

    .sc-auth-v4-brand h1 {
        font-size: 18px;
    }

    .sc-auth-v4-panel {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .sc-auth-v4-subtitle {
        display: none;
    }

    .sc-auth-v4-divider {
        margin:
            7px
            0
            6px;
    }
}


/* Guest auth page: compact global mobile menu */
@media (max-width: 760px) {

    body.sc-auth-v4-active
    .mobile-menu-toggle,
    body.sc-auth-v4-active
    .menu-toggle,
    body.sc-auth-v4-active
    .sc-mobile-menu-toggle {
        min-height: 40px !important;

        padding:
            6px
            12px !important;

        font-size: 13px !important;

        border-radius: 0 0 10px 0 !important;
    }
}


/* =========================================================
   SPEEDACURE AUTH GUEST MOBILE ISOLATION
   ========================================================= */

@media (max-width: 760px) {

    body.sc-auth-v4-active {
        margin: 0 !important;
        padding: 0 !important;

        min-height: 100dvh;

        overflow-x: hidden;
    }

    /*
     * Hide global storefront/mobile navigation while
     * the dedicated customer authentication screen is open.
     */
    body.sc-auth-v4-active header,
    body.sc-auth-v4-active .site-header,
    body.sc-auth-v4-active .mobile-header,
    body.sc-auth-v4-active .mobile-nav,
    body.sc-auth-v4-active .mobile-menu,
    body.sc-auth-v4-active .mobile-menu-toggle,
    body.sc-auth-v4-active .menu-toggle,
    body.sc-auth-v4-active .sc-mobile-menu-toggle,
    body.sc-auth-v4-active .sc-mobile-nav,
    body.sc-auth-v4-active .sc-mobile-nav-toggle {
        display: none !important;
    }

    body.sc-auth-v4-active .sc-account {
        width: 100%;
        min-height: 100dvh;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 10px;
    }

    .sc-auth-v4-shell {
        width: min(100%, 480px);
    }

    .sc-auth-v4-card {
        width: 100%;

        margin: 0;

        border-radius: 20px;

        box-shadow:
            0 16px 45px rgba(24,73,49,.13),
            0 2px 8px rgba(24,73,49,.05);
    }

    /* More balanced mobile brand area */
    .sc-auth-v4-brand {
        min-height: auto !important;

        padding:
            18px
            18px
            16px;

        border-radius:
            20px
            20px
            0
            0;
    }

    .sc-auth-v4-logo {
        height: 34px;
        max-width: 165px;

        margin: 0 auto 10px;

        filter: brightness(0) invert(1);
        opacity: 1;
    }

    .sc-auth-v4-brand h1 {
        max-width: 320px;

        margin-inline: auto;

        font-size: 22px;
        line-height: 1.12;

        text-align: center;
    }

    .sc-auth-v4-brand p,
    .sc-auth-v4-brand::after {
        display: none;
    }

    .sc-auth-v4-tabs {
        margin:
            10px
            12px
            0;
    }

    .sc-auth-v4-panel {
        padding:
            14px
            16px
            16px;
    }

    .sc-auth-v4-social {
        grid-template-columns: 1fr 1fr;
    }
}


/* Narrowest phones only */
@media (max-width: 350px) {

    .sc-auth-v4-social {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SPEEDACURE AUTH — PREVENT INITIAL HTML FLASH / FOUC
   ========================================================= */

/*
 * Guest account page starts hidden until account-auth-v4.js
 * has transformed the raw PHP forms into the final auth UI.
 */
body.sc-account-guest .sc-account {
    opacity: 0;
    visibility: hidden;
}


/*
 * Reveal immediately after auth JS initializes.
 */
body.sc-account-guest.sc-auth-v4-active .sc-account {
    opacity: 1;
    visibility: visible;

    transition:
        opacity .12s ease;
}


/*
 * Keep the page background visible while the auth component
 * initializes so the screen never flashes plain white HTML.
 */
body.sc-account-guest {
    min-height: 100dvh;

    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(26,122,76,.13),
            transparent 28rem
        ),
        radial-gradient(
            circle at 88% 85%,
            rgba(26,122,76,.08),
            transparent 24rem
        ),
        linear-gradient(
            135deg,
            #eef8f2 0%,
            #f9fcfa 50%,
            #edf7f1 100%
        );
}


/*
 * Reduced-motion users get an immediate reveal.
 */
@media (prefers-reduced-motion: reduce) {

    body.sc-account-guest.sc-auth-v4-active .sc-account {
        transition: none;
    }
}


/* =========================================================
   MODERN SOCIAL LOGIN ICONS
   ========================================================= */

.sc-auth-v4-social-button {
    position: relative;
    min-height: 46px;
    border: 1px solid #dfe7e3;
    background: #fff;
    box-shadow: 0 2px 6px rgba(20,60,42,.03);
}

.sc-auth-v4-social-button:hover {
    border-color: #c8d7d0;
    background: #fbfdfc;
    box-shadow: 0 6px 16px rgba(20,60,42,.07);
}

.sc-auth-v4-social-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.sc-auth-v4-social-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.sc-auth-v4-google-mark,
.sc-auth-v4-facebook-mark {
    display: none !important;
}

@media (max-width: 760px) {

    .sc-auth-v4-social-icon,
    .sc-auth-v4-social-icon svg {
        width: 20px;
        height: 20px;
    }

    .sc-auth-v4-social-button {
        font-size: 11px;
    }
}

/* =========================================================
   SPEEDACURE AUTH FINAL DESKTOP POLISH
   ========================================================= */

@media (min-width: 761px) {

    .sc-auth-v4-card {
        min-height: 590px;
    }

    .sc-auth-v4-brand {
        min-height: 590px;
        padding: 48px 38px;
    }

    .sc-auth-v4-logo {
        height: 56px;
        max-width: 210px;
        margin-bottom: 32px;
    }

    .sc-auth-v4-brand h1 {
        max-width: 320px;
        font-size: 36px;
        line-height: 1.08;
    }

    .sc-auth-v4-brand p {
        max-width: 320px;
        margin-top: 18px;
        line-height: 1.55;
    }

    .sc-auth-v4-brand::after {
        margin-top: 30px;
        line-height: 2.7;
    }

    .sc-auth-v4-tabs {
        margin-top: 44px;
    }

    .sc-auth-v4-panel {
        padding-top: 22px;
    }

    .sc-auth-v4-forgot-row {
        margin-top: 2px;
        margin-bottom: 8px;
    }

    .sc-auth-v4-secure-note {
        margin-top: 5px;
        margin-bottom: 4px;
    }

    .sc-auth-v4-primary {
        min-height: 50px;
    }

    .sc-auth-v4-social-button {
        min-height: 48px;
        padding-inline: 14px;
        border-color: #d9e4df;
    }
}
