/* Login / signup central content. Tokens from storefrontRefresh.css (--sf-*).
   Scoped to .authPage so header, menu, footer, and other login.css pages stay untouched. */

.authPage.loginPage .websiteContainer {
    margin-top: 0;
    min-height: 0;
    background: var(--sf-bg-soft);
    text-align: initial;
}

.authPage section.login-main {
    background: linear-gradient(180deg, #F4F1FB 0%, #F8F7FC 55%, #EFF4FB 100%);
    padding-block: 96px;
    padding-inline: 0;
    position: relative;
    overflow: hidden;
    min-height: 64vh;
    display: flex;
    align-items: center;
}

.authPage.authPage--signup section.login-main {
    padding-block: 80px;
}

.authPage .auth-wrap {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin-inline: auto;
    padding-inline: 22px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.authPage.authPage--signup .auth-wrap {
    max-width: 1100px;
}

.authPage .lg-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.authPage .lg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(46px);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.authPage .lg-orb.o1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #6C2BB9, transparent 68%);
    top: -70px;
    inset-inline-start: 6%;
    animation: authOrb1 15s ease-in-out infinite;
}

.authPage .lg-orb.o2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #027ACA, transparent 68%);
    bottom: -70px;
    inset-inline-end: 6%;
    animation: authOrb2 17s ease-in-out infinite;
}

.authPage .lg-orb.o3 {
    width: 230px;
    height: 230px;
    background: radial-gradient(circle, #1E9FE0, transparent 70%);
    bottom: -40px;
    inset-inline-start: 12%;
    animation: authOrb3 13s ease-in-out infinite;
}

.authPage .lg-orb.o4 {
    width: 230px;
    height: 230px;
    background: radial-gradient(circle, #8A3CE0, transparent 70%);
    top: -40px;
    inset-inline-end: 12%;
    animation: authOrb4 14s ease-in-out infinite;
}

@keyframes authOrb1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(24px, 34px); }
}

@keyframes authOrb2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-24px, -30px); }
}

@keyframes authOrb3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -22px); }
}

@keyframes authOrb4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-28px, 26px); }
}

@keyframes authRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.authPage .authCard {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 432px;
    margin-inline: auto;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 22px;
    box-shadow: var(--sf-shadow-lg);
    overflow: hidden;
    animation: authRise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.authPage.authPage--signup .authCard {
    max-width: 680px;
}

.authPage .a-form,
.authPage .loginDiv {
    width: 100%;
    box-sizing: border-box;
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    color: var(--sf-ink);
    background: transparent;
    text-align: initial;
    border-radius: 0;
    border-top: 0;
    box-shadow: none;
}

.authPage.authPage--signup .a-form,
.authPage.authPage--signup .loginDiv {
    padding: 38px 40px;
}

.authPage .a-head {
    margin-bottom: 24px;
    text-align: center;
}

.authPage .formRow:has(.checkboxDiv) {
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.authPage .authChecks {
    margin-top: 22px;
}

.authPage .a-head h1,
.authPage .a-head h2,
.authPage .login-main > h2,
.authPage .authCard > h2,
.authPage .a-form > h2,
.authPage .loginDiv > h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--sf-purple);
    letter-spacing: -0.5px;
    line-height: 1.14;
    margin: 0 0 24px;
    text-align: center;
}

.authPage .a-head h1 span {
    color: var(--sf-primary);
}

.authPage .a-head h2,
.authPage .authCard > h2 {
    margin-bottom: 0;
}

.authPage .a-field,
.authPage .inputDiv {
    width: 100%;
    margin: 0 0 18px;
    align-items: stretch;
}

.authPage .userDetailsForm .inputDiv {
    width: 100%;
    color: var(--sf-ink);
    margin: 0;
}

.authPage .formRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin: 0 0 16px;
    align-items: start;
}

.authPage .formRow .inputDiv,
.authPage .loginDiv .formRow .inputDiv,
.authPage.loginPage .loginDiv .inputDiv {
    width: 100%;
    align-items: stretch;
}

.authPage .a-field label,
.authPage .inputDiv label,
.authPage .userDetailsForm label,
.authPage .formRow label,
.authPage label {
    display: block;
    width: 100%;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--sf-ink);
    margin-bottom: 7px;
    text-align: right;
}

.authPage.authPage--signup .inputDiv label {
    font-size: 0.88rem;
}

.authPage .userDetailsForm label span,
.authPage label span {
    color: var(--sf-muted);
    font-weight: 600;
    font-size: 0.82rem;
    margin-inline-start: 4px;
}

.authPage label.required:before {
    content: none;
}

.authPage label.required:after {
    content: "*";
    color: #c0392b;
    margin-inline-start: 2px;
}

.authPage .a-inp {
    position: relative;
    width: 100%;
}

.authPage .inputDiv .a-inp,
.authPage .inputDiv .formErrorMessage {
    width: 100%;
}

.authPage .a-inp .lead {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 14px;
    color: var(--sf-muted);
    display: flex;
    pointer-events: none;
}

.authPage .a-inp .lead .material-icons {
    font-size: 19px;
}

.authPage .a-inp input,
.authPage .userDetailsForm input,
.authPage .inputDiv input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--sf-line);
    border-radius: 12px;
    padding-block: 13px;
    padding-inline-start: 16px;
    padding-inline-end: 16px;
    margin: 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--sf-ink);
    background: #fff;
    box-shadow: none;
    transition: 0.15s;
}

.authPage .a-inp input {
    padding-inline-start: 46px;
}

.authPage.authPage--signup .a-inp input,
.authPage.authPage--signup .userDetailsForm input {
    border-radius: 11px;
    padding-block: 12px;
    font-size: 0.98rem;
}

.authPage.authPage--signup .a-inp input {
    padding-inline-start: 42px;
}

.authPage .a-inp input:focus,
.authPage .userDetailsForm input:focus {
    outline: 0;
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 4px rgba(2, 122, 202, 0.12);
}

.authPage .a-inp.has-toggle input {
    padding-inline-end: 46px;
}

.authPage .a-inp .toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 12px;
    background: none;
    border: 0;
    color: var(--sf-muted);
    cursor: pointer;
    display: flex;
    padding: 4px;
    border-radius: 8px;
    min-width: 0;
    margin: 0;
    box-shadow: none;
    transition: 0.15s;
}

.authPage .a-inp .toggle:hover {
    color: var(--sf-purple);
    background: var(--sf-bg-soft);
}

.authPage .a-inp .toggle .material-icons {
    font-size: 20px;
}

.authPage input.invalidInput {
    border-color: var(--alert);
}

.authPage .formErrorMessage {
    border: none;
    color: var(--alert);
    font-weight: 700;
    font-size: 0.82rem;
    margin-top: 6px;
    text-align: right;
}

.authPage .forgotPassword {
    display: flex;
    justify-content: flex-start;
    margin: 12px 0 22px;
}

.authPage .forgotPassword a,
.authPage .forgotPassword a button {
    color: var(--sf-ink);
    font-weight: 800;
    font-size: 0.88rem;
    font-family: inherit;
    background: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    margin: 0;
}

.authPage .forgotPassword a button:hover,
.authPage .forgotPassword a:hover {
    color: var(--sf-purple);
    text-decoration: underline;
}

.authPage .buttonsRow {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.authPage .buttonsRow a {
    display: flex;
}

.authPage .buttonsRow .mainButton,
.authPage .buttonsRow .secondaryButton,
.authPage #formSubmitButton.mainButton,
.authPage #formSubmitButton.secondaryButton {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 800;
    font-size: 1rem;
    border: 0;
    border-radius: 13px;
    padding: 14px 18px;
    min-width: 0;
    margin: 0;
    box-shadow: none;
}

.authPage #formSubmitButton {
    margin: 0;
}

.authPage .buttonsRow .mainButton,
.authPage #formSubmitButton.mainButton,
.authPage #formSubmitButton.secondaryButton {
    background: var(--sf-grad-btn);
    color: #fff;
    box-shadow: 0 14px 28px -12px rgba(2, 122, 202, 0.6);
}

.authPage .buttonsRow .mainButton:hover,
.authPage #formSubmitButton.mainButton:hover,
.authPage #formSubmitButton.secondaryButton:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.authPage .buttonsRow .secondaryButton {
    flex: none;
    min-width: 132px;
    background: #fff;
    color: var(--sf-purple);
    border: 1.5px solid var(--sf-purple);
}

.authPage .buttonsRow .secondaryButton:hover {
    background: var(--sf-purple);
    color: #fff;
    transform: none;
    filter: none;
}

.authPage .authCard > a .mainButton,
.authPage .a-form > a .mainButton,
.authPage .loginDiv > a .mainButton,
.authPage .loggedInActions .mainButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 13px;
    padding: 14px 18px;
    background: var(--sf-grad-btn);
    color: #fff;
    box-shadow: 0 14px 28px -12px rgba(2, 122, 202, 0.6);
}

.authPage .loginDiv > .boldText,
.authPage .a-div {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--sf-muted);
    font-weight: 700;
    font-size: 0.85rem;
    margin: 6px 0 20px;
    text-align: center;
}

.authPage.authPage--signup .loginDiv > .boldText,
.authPage.authPage--signup .a-div {
    margin: 18px 0;
}

.authPage .loginDiv > .boldText::before,
.authPage .loginDiv > .boldText::after,
.authPage .a-div::before,
.authPage .a-div::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--sf-line);
}

.authPage .otherLogin,
.authPage .otherLogin a {
    width: 100%;
    margin: 0;
}

.authPage .a-form > a,
.authPage .loginDiv > a {
    align-self: center;
}

.authPage .otherLogin a button {
    width: 100%;
    padding: 0;
    background: none;
    box-shadow: none;
}

.authPage .a-foot {
    margin-top: 24px;
    text-align: center;
    color: var(--sf-muted);
    font-weight: 600;
    font-size: 0.88rem;
}

.authPage.authPage--signup .a-foot {
    margin-top: 22px;
    font-size: 0.9rem;
}

.authPage .a-foot a {
    color: var(--sf-primary);
    font-weight: 800;
}

.authPage .a-foot a:hover {
    text-decoration: underline;
}

.authPage .googleSignIn {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: #fff;
    border: 1.5px solid var(--sf-line);
    border-radius: 13px;
    padding: 13px 18px;
    font-weight: 800;
    font-size: 0.96rem;
    color: var(--sf-ink);
    box-shadow: none;
    margin: 0;
}

.authPage .googleSignIn:hover {
    border-color: var(--sf-muted);
    box-shadow: var(--sf-shadow-sm);
    transform: translateY(-1px);
}

.authPage .googleLogo {
    width: 20px;
    height: 20px;
    flex: none;
    order: 2;
}

.authPage .checkboxDiv,
.authPage .inputDiv.checkboxDiv,
.authPage .loginDiv .inputDiv.checkboxDiv {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.authPage .checkboxDiv label,
.authPage .inputDiv.checkboxDiv label {
    width: auto;
    flex: 1;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--sf-ink-soft);
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
}

.authPage .checkboxDiv input,
.authPage .inputDiv.checkboxDiv input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    accent-color: var(--sf-primary);
    flex: none;
}

.authPage .checkboxDiv a {
    color: var(--sf-primary);
    font-weight: 800;
}

.authPage .checkboxDiv a:hover {
    text-decoration: underline;
}

.authPage #formSubmitButton.secondaryButton {
    width: 100%;
    margin-top: 6px;
    padding: 15px 18px;
    font-size: 1.02rem;
}

.authPage #passwordInstructions {
    display: none;
    background: var(--sf-bg-soft);
    border: 1px solid var(--sf-line);
    border-radius: 13px;
    padding: 14px 16px;
    margin: 0 0 16px;
    color: var(--sf-ink);
    text-align: right;
    box-shadow: none;
}

.authPage #passwordInstructions h3 {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--sf-ink);
    margin: 0 0 10px;
}

.authPage #passwordInstructions > div {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sf-muted);
    margin-bottom: 8px;
}

.authPage #passwordInstructions > div:last-child {
    margin-bottom: 0;
}

.authPage #passwordInstructions .passwordIns {
    display: inline-flex;
    color: #c0392b;
    flex: none;
}

.authPage #passwordInstructions .passwordIns .material-icons {
    font-size: 16px;
}

.authPage #passwordInstructions .passwordIns.validIns {
    color: #1FB457;
}

.authPage #passwordInstructions .passwordIns.validIns + *,
.authPage #passwordInstructions .validIns {
    color: inherit;
}

.authPage #passwordInstructions > div:has(.validIns) {
    color: #127a3b;
}

@media (max-width: 840px) {
    .authPage section.login-main,
    .authPage.authPage--signup section.login-main {
        padding-block: 36px;
        min-height: 0;
    }

    .authPage .authCard,
    .authPage.authPage--signup .authCard {
        max-width: 460px;
    }

    .authPage .a-form,
    .authPage .loginDiv,
    .authPage.authPage--signup .a-form,
    .authPage.authPage--signup .loginDiv {
        padding: 30px 24px;
    }

    .authPage .a-head h1,
    .authPage .a-head h2,
    .authPage .authCard > h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 720px) {
    .authPage .formRow,
    .authPage #signupForm .formRow {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
        flex-direction: column;
    }

    .authPage .formRow .inputDiv {
        margin-bottom: 15px;
    }

    .authPage.authPage--signup .a-form,
    .authPage.authPage--signup .loginDiv {
        padding: 28px 22px;
    }
}

@media (max-width: 420px) {
    .authPage .buttonsRow {
        flex-direction: column;
    }

    .authPage .buttonsRow .secondaryButton {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .authPage .lg-orb,
    .authPage .authCard,
    .authPage .googleSignIn,
    .authPage .buttonsRow .mainButton,
    .authPage #formSubmitButton {
        animation: none;
        transition: none;
    }
}

@media only screen and (min-width: 1280px) {
    .authPage .loginDiv {
        width: 100%;
    }

    .authPage.loginPage .websiteContainer {
        min-height: 0;
        margin-top: 0;
    }

    .authPage.loginPage .loginDiv .inputDiv {
        align-items: stretch;
    }

    .authPage .otherLogin a {
        width: 100%;
        min-width: 0;
    }

    .authPage #signupForm .formRow {
        flex-direction: unset;
    }
}
