/* =========================================================
   STOREXY AUTH
   Login / password recovery
   ========================================================= */

:root {
    --auth-pink: #ec1976;
    --auth-pink-dark: #d91469;
    --auth-ink: #182230;
    --auth-muted: #667085;
    --auth-border: #e8ecf2;
    --auth-bg: #f6f8fb;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.storexy-auth-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Lato, Arial, sans-serif;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(129,92,246,.08), transparent 24%),
        radial-gradient(circle at 92% 88%, rgba(18,183,106,.07), transparent 24%),
        #f7f9fc;
}

a { color: inherit; }

.auth-shell {
    position: relative;
    z-index: 2;
    width: min(1080px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid #e5e9f0;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(22,34,51,.10);
}

/* =========================================================
   LEFT VISUAL
   ========================================================= */

.auth-visual {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 31px 34px;
    background:
        radial-gradient(circle at 82% 20%, rgba(255,255,255,.58), transparent 25%),
        linear-gradient(135deg, #f7f1ff 0%, #eef7ff 48%, #effcf8 100%);
}

.auth-brand {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--auth-ink);
    font-family: Poppins, sans-serif;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.06em;
}

.auth-brand > span:last-child > span,
.auth-brand-dark > span:last-child > span { color: var(--auth-pink); }

.auth-brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: var(--auth-pink);
    box-shadow: 0 9px 20px rgba(236,25,118,.22);
    font-size: 16px;
    letter-spacing: 0;
}

.auth-visual-content {
    position: relative;
    z-index: 4;
    max-width: 440px;
    margin-top: 112px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 999px;
    background: rgba(255,255,255,.60);
    backdrop-filter: blur(10px);
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.auth-kicker i { color: #12b76a; }

.auth-visual h1 {
    margin: 17px 0 12px;
    font-family: Poppins, sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.35rem);
    line-height: .98;
    letter-spacing: -.065em;
    color: var(--auth-ink);
}

.auth-visual h1 span { color: var(--auth-pink); }

.auth-visual p {
    max-width: 410px;
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.65;
}

.auth-mini-cards {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.auth-mini-cards > div {
    min-width: 104px;
    padding: 13px 12px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 15px;
    background: rgba(255,255,255,.52);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(22,34,51,.045);
}

.auth-mini-cards i {
    display: block;
    margin-bottom: 8px;
    color: #7f56d9;
    font-size: 16px;
}

.auth-mini-cards span {
    color: #475467;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.visual-orb,
.visual-ring {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}

.orb-one {
    width: 310px;
    height: 310px;
    right: -120px;
    bottom: -155px;
    background: rgba(129,92,246,.13);
}

.orb-two {
    width: 180px;
    height: 180px;
    right: 80px;
    top: -95px;
    background: rgba(17,153,142,.11);
}

.ring-one {
    width: 250px;
    height: 250px;
    right: -60px;
    top: 185px;
    border: 1px solid rgba(129,92,246,.12);
}

.ring-two {
    width: 170px;
    height: 170px;
    right: 105px;
    bottom: 48px;
    border: 1px dashed rgba(17,153,142,.15);
}

/* =========================================================
   RIGHT FORM
   ========================================================= */

.auth-form-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px 58px 45px;
    background: #fff;
}

.mobile-home-link { display: none; }

.auth-heading { margin-bottom: 27px; }

.auth-form-kicker {
    margin-bottom: 6px;
    color: var(--auth-pink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.auth-heading h2,
.auth-heading h1 {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 29px;
    line-height: 1.15;
    letter-spacing: -.045em;
    color: var(--auth-ink);
}

.auth-heading p {
    max-width: 500px;
    margin: 9px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.6;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    margin: 0 0 20px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-alert-error {
    border-color: #f3c8d8;
    background: #fff4f8;
    color: #a91552;
}

.auth-alert-success {
    border-color: #cce8d8;
    background: #f1fbf5;
    color: #26734a;
}

.alert-icon { flex: 0 0 auto; }

.auth-form { display: grid; gap: 19px; }

.auth-field label,
.field-label-row label {
    display: block;
    margin: 0 0 8px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.field-label-row a {
    color: var(--auth-pink);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.field-label-row a:hover { text-decoration: underline; }

.input-wrap { position: relative; }

.input-wrap .field-icon {
    position: absolute;
    z-index: 2;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 14px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 47px 0 42px;
    border: 1px solid #dfe4ea;
    border-radius: 13px;
    outline: none;
    background: #fff;
    color: var(--auth-ink);
    font: 14px Lato, Arial, sans-serif;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-wrap input::placeholder { color: #b2bac5; }

.input-wrap input:hover { border-color: #cfd6df; }

.input-wrap input:focus {
    border-color: rgba(236,25,118,.55);
    box-shadow: 0 0 0 4px rgba(236,25,118,.08);
}

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    width: 37px;
    height: 37px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.password-toggle:hover {
    background: #f5f7fa;
    color: var(--auth-pink);
}

.auth-options { margin-top: -2px; }

.check-control {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #667085;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.check-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-box {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cdd4dd;
    border-radius: 5px;
    background: #fff;
    color: #fff;
    font-size: 9px;
    transition: all .18s ease;
}

.check-control input:checked + .check-box {
    border-color: var(--auth-pink);
    background: var(--auth-pink);
}

.check-control input:focus-visible + .check-box {
    box-shadow: 0 0 0 4px rgba(236,25,118,.10);
}

.auth-submit {
    width: 100%;
    min-height: 53px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 18px 0 20px;
    border: 0;
    border-radius: 13px;
    background: var(--auth-pink);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 11px 25px rgba(236,25,118,.20);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-submit:hover {
    background: var(--auth-pink-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(236,25,118,.25);
}

.auth-submit i { font-size: 12px; }

.auth-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 27px;
    padding-top: 21px;
    border-top: 1px solid #edf0f4;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.5;
}

.auth-footer a {
    color: #667085;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover { color: var(--auth-pink); }

.auth-legal {
    margin: 15px 0 0;
    text-align: center;
    color: #98a2b3;
    font-size: 10px;
    letter-spacing: .03em;
}

/* =========================================================
   SIMPLE RECOVERY CARDS
   ========================================================= */

.auth-simple-shell {
    align-items: center;
}

.auth-simple-card {
    position: relative;
    width: min(540px, 100%);
    padding: 37px 45px 34px;
    border: 1px solid #e5e9f0;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(22,34,51,.09);
}

.auth-brand-dark { margin-bottom: 35px; }

.simple-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 17px;
    background: linear-gradient(135deg, #f7f1ff, #eef7ff);
    color: #7f56d9;
    font-size: 21px;
}

.success-icon { background: #eaf8f0; color: #12b76a; }
.error-icon { background: #fff0f4; color: #d64574; }

.simple-heading h1 span { color: var(--auth-pink); }

.simple-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.auth-submit-link { justify-content: space-between; }

/* =========================================================
   BACKGROUND ICONS
   ========================================================= */

.auth-background-icon {
    position: fixed;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 19px;
    background: rgba(255,255,255,.50);
    box-shadow: 0 10px 30px rgba(22,34,51,.035);
    color: rgba(127,86,217,.25);
    backdrop-filter: blur(7px);
    pointer-events: none;
    transform: rotate(-7deg);
}

.icon-cart { top: 10%; left: 5%; transform: rotate(-12deg); }
.icon-store { top: 21%; right: 5%; transform: rotate(9deg); color: rgba(18,153,142,.22); }
.icon-box { bottom: 14%; left: 7%; transform: rotate(7deg); color: rgba(236,25,118,.18); }
.icon-tag { bottom: 8%; right: 9%; transform: rotate(-11deg); }
.icon-heart { top: 7%; right: 18%; width: 45px; height: 45px; border-radius: 15px; transform: rotate(14deg); color: rgba(236,25,118,.20); }
.icon-sparkle { bottom: 22%; right: 20%; width: 48px; height: 48px; border-radius: 15px; transform: rotate(12deg); color: rgba(18,183,106,.20); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-visual {
        min-height: 280px;
        padding: 25px 28px;
    }

    .auth-visual-content {
        max-width: 650px;
        margin-top: 52px;
    }

    .auth-visual h1 {
        font-size: 3rem;
    }

    .auth-visual p { max-width: 580px; }

    .auth-mini-cards { margin-top: 21px; }

    .auth-form-panel { padding: 42px 45px 38px; }
}

@media (max-width: 600px) {
    .auth-shell {
        width: min(100% - 20px, 540px);
        padding: 10px 0 18px;
        justify-content: flex-start;
    }

    .auth-card,
    .auth-simple-card {
        border-radius: 21px;
    }

    .auth-visual { min-height: 235px; }

    .auth-visual-content {
        margin-top: 34px;
    }

    .auth-visual h1 {
        margin-top: 13px;
        font-size: 2.45rem;
    }

    .auth-visual p {
        font-size: 13px;
        line-height: 1.55;
    }

    .auth-mini-cards { display: none; }

    .auth-form-panel { padding: 27px 22px 25px; }

    .mobile-home-link {
        display: block;
        margin-bottom: 25px;
    }

    .mobile-home-link a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #667085;
        font-size: 11px;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-home-link a:hover { color: var(--auth-pink); }

    .auth-heading { margin-bottom: 22px; }

    .auth-heading h2,
    .auth-heading h1 { font-size: 24px; }

    .auth-heading p { font-size: 13px; }

    .auth-form { gap: 17px; }

    .input-wrap input { height: 50px; }

    .auth-background-icon { opacity: .65; transform: scale(.78); }

    .icon-heart,
    .icon-sparkle { display: none; }

    .auth-simple-shell { padding-top: 10px; }

    .auth-simple-card { padding: 28px 22px 25px; }

    .auth-brand-dark { margin-bottom: 31px; }

    .simple-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .auth-visual { min-height: 220px; }
    .auth-visual h1 { font-size: 2.2rem; }
    .auth-form-panel { padding-left: 18px; padding-right: 18px; }
    .auth-simple-card { padding-left: 19px; padding-right: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
