.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    background: #f6f4f9;
}

.auth-page--simple {
    grid-template-columns: 1fr;
    place-items: center;
    background: #fff;
}

.auth-page--simple .auth-panel-form {
    order: 1;
    width: 100%;
    max-width: 440px;
    border-left: 0;
    box-shadow: none;
    background: transparent;
    padding: clamp(48px, 8vh, 72px) clamp(24px, 5vw, 32px);
}

.auth-page--simple .auth-form-inner {
    max-width: none;
}

.auth-page--simple.auth-page--signup .auth-panel-form {
    max-width: 460px;
}

.auth-page--simple .auth-logo {
    margin-bottom: 28px;
}

.auth-form--plain {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.auth-inline-promo {
    margin: -12px 0 22px;
    padding: 12px 14px;
    border: 1px solid #e6dff5;
    border-radius: 10px;
    background: #faf8ff;
    color: #4f3d72;
    font-size: 14px;
    line-height: 1.5;
}

.auth-inline-promo span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6c566c;
}

.auth-inline-promo strong {
    color: #6c42c1;
}

.auth-panel-visual {
    order: 1;
}

.auth-panel-form {
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(44px, 6vh, 72px) clamp(28px, 5vw, 56px);
    background: #fff;
    border-left: 1px solid #ebe7f2;
    box-shadow: -18px 0 48px rgba(35, 28, 55, 0.04);
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-form-inner--signup {
    max-width: 420px;
}

.auth-panel-form--signup {
    justify-content: center;
    padding-top: clamp(36px, 5vh, 64px);
    padding-bottom: clamp(36px, 5vh, 64px);
}

.auth-form--signup {
    padding-bottom: 20px;
}

.auth-form-head {
    margin-bottom: 28px;
}

.auth-form-head h1 {
    margin-bottom: 10px;
}

.auth-form-head .auth-lead {
    margin-bottom: 0;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 34px;
}

.auth-logo img {
    width: 205px;
    height: auto;
    display: block;
}

.auth-panel-form h1 {
    color: #191c2a;
    font-size: clamp(1.85rem, 2.8vw, 2.15rem);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.auth-lead {
    color: #606676;
    font-size: 16px;
    line-height: 1.55;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #191c2a;
    font-size: 14px;
    font-weight: 600;
}

.auth-form {
    padding: 22px 22px 4px;
    border: 1px solid #ebe7f2;
    border-radius: 14px;
    background: #fcfbfe;
}

.auth-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #dcd8e8;
    border-radius: 9px;
    background: #fff;
    color: #191c2a;
    font: inherit;
    font-size: 15px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #aa91d5;
    box-shadow: 0 0 0 3px rgba(112, 71, 196, 0.14);
}

.auth-field input.is-invalid {
    border-color: #d94862;
}

.auth-field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.auth-field-label-row label {
    margin-bottom: 0;
}

.auth-forgot {
    font-size: 13px;
    font-weight: 600;
    color: #7047c4;
    white-space: nowrap;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-error,
.auth-status {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.45;
}

.auth-error {
    border: 1px solid #f2c4cc;
    background: #fff5f7;
    color: #9b2340;
}

.auth-status {
    border: 1px solid #c8e8d5;
    background: #f2fbf6;
    color: #1f6b47;
}

.auth-field .invalid-feedback {
    margin-top: 6px;
    color: #b4233c;
    font-size: 13px;
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
}

.auth-google--primary {
    margin-bottom: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 18px;
    color: #8b849d;
    font-size: 13px;
    font-weight: 600;
}

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

.auth-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid #dcd8e8;
    border-radius: 9px;
    background: #fff;
    color: #191c2a;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.auth-google:hover {
    border-color: #b39dce;
    background: #faf8fd;
}

.auth-google img {
    width: 20px;
    height: 20px;
}

.auth-switch {
    margin-top: 26px;
    color: #606676;
    font-size: 14px;
}

.auth-switch a {
    color: #7047c4;
    font-weight: 700;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-panel-visual {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background:
        radial-gradient(ellipse at 28% 18%, rgba(255, 255, 255, 0.65), transparent 48%),
        radial-gradient(ellipse at 72% 82%, rgba(198, 172, 245, 0.35), transparent 55%),
        linear-gradient(155deg, #eee5f9 0%, #e4daf5 42%, #d9cce8 100%);
}

.auth-panel-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/image-sign-in.jpg') center / cover no-repeat;
    opacity: 0.16;
}

.auth-panel-visual::after {
    content: '';
    position: absolute;
    inset: auto -80px -120px -60px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 71, 196, 0.12), transparent 68%);
    pointer-events: none;
}

.auth-promo {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 2;
    max-width: 300px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(108, 66, 193, 0.94), rgba(85, 49, 159, 0.94));
    color: #fff;
    box-shadow: 0 18px 45px rgba(63, 35, 120, 0.22);
    font-size: 14px;
    line-height: 1.5;
}

.auth-promo strong {
    color: #ffe9a8;
}

.auth-promo-code {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
}

.auth-visual-card {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    z-index: 2;
    padding: 26px 28px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 22px 55px rgba(52, 34, 89, 0.12);
}

.auth-visual-card h2 {
    margin-bottom: 10px;
    color: #191c2a;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.auth-visual-card p {
    margin: 0;
    color: #7d788c;
    font-size: 12px;
}

.auth-panel-visual--signin .auth-visual-copy {
    max-width: none;
}

@media (max-width: 960px) {
    .auth-page {
        grid-template-columns: 1fr;
        background: #fff;
    }

    .auth-panel-visual {
        display: none;
    }

    .auth-panel-form {
        order: 1;
        border-left: 0;
        box-shadow: none;
        max-width: none;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .auth-form-inner {
        max-width: 440px;
    }
}

.auth-benefits {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #3d3550;
    font-size: 14px;
    line-height: 1.5;
}

.auth-benefits li::before {
    content: '';
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 18px;
    border-radius: 50%;
    background: #ede7f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%237047c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

.auth-visual-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(80px, 10vh, 120px) clamp(28px, 5vw, 56px) clamp(32px, 5vh, 48px);
    max-width: 500px;
}

.auth-visual-foot {
    margin: auto 0 0;
    padding-top: 28px;
    color: #6e6780;
    font-size: 12px;
    line-height: 1.5;
}

.auth-visual-copy h2 {
    margin-bottom: 14px;
    color: #191c2a;
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.auth-visual-copy > p {
    margin: 0;
    color: #5c566c;
    font-size: 16px;
    line-height: 1.6;
}

.auth-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 9px 12px;
    border: 1px solid #e2d9f2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #55319f;
    font-size: 13px;
    font-weight: 600;
}

.auth-social-proof--count strong {
    color: #6c42c1;
    font-weight: 800;
}

.auth-recent-buyers {
    margin: -12px 0 22px;
    padding: 8px 12px;
    border: 1px solid #ebe7f2;
    border-radius: 10px;
    background: #faf8fd;
    color: #5c566c;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.auth-social-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.auth-social-proof-row .auth-social-proof {
    margin-top: 0;
}

.auth-terms-error {
    margin: -8px 0 14px;
}

.auth-turnstile-wrap {
    display: flex;
    justify-content: center;
    margin: 6px 0 16px;
}

.auth-turnstile-wrap .auth-turnstile {
    margin-bottom: 0;
}

.auth-panel-visual--signup .auth-visual-copy {
    max-width: none;
}

.auth-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    color: #4a4558;
    font-size: 13px;
    line-height: 1.55;
}

.auth-check-row input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex: 0 0 17px;
    accent-color: #7047c4;
}

.auth-check-row a {
    color: #7047c4;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-turnstile {
    margin-bottom: 18px;
}

.auth-exit {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(25, 28, 42, 0.45);
}

.auth-exit.is-open {
    display: flex;
}

.auth-exit-card {
    position: relative;
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid #ebe7f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(25, 28, 42, 0.18);
}

.auth-exit-card h2 {
    margin-bottom: 10px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.auth-exit-card p {
    margin-bottom: 18px;
    font-size: 15px;
}

.auth-exit-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid #ebe7f2;
    border-radius: 8px;
    background: #fff;
    color: #606676;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.auth-panel-visual--signup::before {
    background-image: url('../img/image-sign-up.jpg');
    opacity: 0.16;
}

@media (prefers-reduced-motion: reduce) {
    .auth-field input,
    .auth-google {
        transition: none;
    }
}
