/* Auth — Shopix-style centered card (layouts.auth only) */

.auth-shopix {
    /* Marvel red */
    --auth-brand: #ec1d24;
    --auth-brand-hover: #c9181f;
    --auth-brand-ring: rgb(236 29 36 / 0.32);
    --auth-brand-soft: rgb(236 29 36 / 0.1);

    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 2.5rem 1rem;
    background-color: #f8fafc;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--auth-brand-soft), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgb(15 23 42 / 0.04), transparent 50%);
}

@media (min-width: 640px) {
    .auth-shopix {
        padding: 2.5rem 1.5rem;
    }
}

/* Long forms (register): top-aligned page — same scroll behavior as before */
.auth-shopix--align-top {
    align-items: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .auth-shopix--align-top {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
}

.auth-shopix__wrap {
    width: 100%;
    max-width: 32rem;
}

.auth-shopix__return {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-shopix__return:hover {
    color: #0f172a;
}

.auth-shopix__return:focus-visible {
    outline: none;
    border-radius: 0.375rem;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--auth-brand-ring);
}

.auth-shopix__card {
    z-index: 1;
    width: 100%;
    max-width: 32rem;
    border-color: rgb(15 23 42 / 0.08);
    border-radius: 0.75rem;
    box-shadow:
        0 1px 2px rgb(15 23 42 / 0.04),
        0 8px 24px rgb(15 23 42 / 0.06);
}

.auth-shopix__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

@media (min-width: 640px) {
    .auth-shopix__header {
        padding: 1.75rem 1.75rem 0;
    }
}

.auth-shopix__brand {
    --auth-logo-slot: 3.25rem;
    --auth-logo-visual: 4.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--auth-logo-slot);
    overflow: visible;
}

.auth-shopix__logo {
    display: block;
    height: var(--auth-logo-visual);
    width: auto;
    max-width: min(100%, 18rem);
    object-fit: contain;
    margin-block: calc((var(--auth-logo-slot) - var(--auth-logo-visual)) / 2);
}

.auth-shopix__heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-shopix__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #0f172a;
}

.auth-shopix__subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #64748b;
}

.auth-shopix__body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 1.5rem 1.5rem !important;
}

@media (min-width: 640px) {
    .auth-shopix__body {
        padding: 1rem 1.75rem 1.75rem !important;
    }
}

/* Divider */

.auth-or-divider {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1;
}

.auth-or-divider::before,
.auth-or-divider::after {
    content: "";
    flex: 1 1 0%;
    min-width: 0;
    height: 1px;
    background-color: #e2e8f0;
}

.auth-or-divider span {
    flex: 0 0 auto;
    padding: 0 0.125rem;
    text-align: center;
}

/* Social — Shopix row */

.auth-social-shopix {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 0.25rem;
}

.auth-social-shopix__btn {
    display: inline-flex;
    flex: 1 1 0;
    min-width: 0;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.auth-social-shopix__btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.auth-social-shopix__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--auth-brand-ring);
}

.auth-social-shopix__btn--disabled {
    cursor: not-allowed;
    opacity: 0.55;
    background: #f8fafc;
}

.auth-social-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

/* Form */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.auth-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    font-size: 0.875rem;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #64748b;
    user-select: none;
}

.auth-checkbox input {
    height: 1rem;
    width: 1rem;
    flex-shrink: 0;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    accent-color: var(--auth-brand);
}

.auth-checkbox--start {
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
}

.auth-checkbox--start input {
    margin-top: 0.2rem;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-prose {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
}

.auth-prose > p {
    margin: 0;
}

.auth-callout {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.auth-callout__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
}

.auth-callout__text {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.auth-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: var(--auth-brand);
}

.auth-link--primary {
    color: var(--auth-brand);
    font-weight: 500;
}

.auth-link--primary:hover {
    color: var(--auth-brand-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-link--strong {
    color: #0f172a;
    font-weight: 600;
}

.auth-link--strong:hover {
    color: var(--auth-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Primary actions — Marvel red on auth pages */
.auth-shopix .bg-\[\#AF3E3E\] {
    background-color: var(--auth-brand) !important;
}

.auth-shopix .hover\:bg-\[\#9c3434\]:hover {
    background-color: var(--auth-brand-hover) !important;
}

.auth-shopix .text-\[\#AF3E3E\] {
    color: var(--auth-brand) !important;
}

.auth-shopix .focus-visible\:ring-\[\#AF3E3E\]\/30:focus-visible {
    --tw-ring-color: var(--auth-brand-ring) !important;
}

.auth-shopix .border-\[\#AF3E3E\] {
    border-color: var(--auth-brand) !important;
}

.auth-shopix .focus-visible\:border-\[\#AF3E3E\]:focus-visible {
    border-color: var(--auth-brand) !important;
}

.auth-shopix .focus-visible\:ring-\[\#AF3E3E\]\/20:focus-visible {
    --tw-ring-color: var(--auth-brand-ring) !important;
}

.auth-footer-note {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    color: #64748b;
}
