/* Auth — cadastro e login premium */
.auth-page {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .auth-page { grid-template-columns: 1.1fr 1fr; }
}

.auth-page__visual {
    display: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255,255,255,.22), transparent 50%),
        linear-gradient(145deg, var(--store-hero-from), var(--store-hero-to));
    color: #fff;
    padding: clamp(2rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}

@media (min-width: 960px) {
    .auth-page__visual { display: flex; align-items: center; }
}

.auth-page__visual::before {
    content: "";
    position: absolute;
    inset: auto -20% -30% -10%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
    pointer-events: none;
}

.auth-page__visual-inner { position: relative; z-index: 1; max-width: 30rem; }
.auth-page__eyebrow {
    margin: 0 0 .65rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .9;
}
.auth-page__visual-title {
    margin: 0 0 1.5rem;
    font-family: var(--store-font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -.03em;
}
.auth-page__benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .85rem;
    font-size: 1rem;
}
.auth-page__benefits li {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .65rem .85rem;
    border-radius: .85rem;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(6px);
}
.auth-page__benefits li::before {
    content: "✓";
    font-weight: 800;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    flex-shrink: 0;
}

.auth-page__main {
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 4vw, 3rem) 1rem;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--store-primary) 8%, transparent), transparent 40%),
        var(--store-bg);
}

.auth-card {
    width: min(100%, 440px);
    background: var(--store-surface);
    border: 1px solid color-mix(in srgb, var(--store-border) 80%, transparent);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow:
        0 1px 2px rgba(15,23,42,.04),
        0 24px 60px rgba(15,23,42,.1);
}

.auth-card__eyebrow {
    margin: 0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--store-primary);
}
.auth-card__title {
    margin: .35rem 0 .25rem;
    font-family: var(--store-font-heading);
    font-size: clamp(1.6rem, 4vw, 1.85rem);
    letter-spacing: -.03em;
}
.auth-card__subtitle { margin: 0 0 1.5rem; color: var(--store-muted); font-size: .92rem; line-height: 1.5; }
.auth-card__footer {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--store-border);
    font-size: .88rem;
    color: var(--store-muted);
    text-align: center;
}
.auth-card__footer a { font-weight: 700; margin-left: .35rem; }
.auth-card__back {
    display: inline-flex;
    margin-top: 1rem;
    font-size: .82rem;
    color: var(--store-muted);
    font-weight: 600;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border-radius: .85rem;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: .88rem;
    font-weight: 600;
}

/* Form */
.auth-form { display: grid; gap: 1.1rem; }
.auth-form__intro { margin-bottom: .25rem; }
.auth-form__lead { margin: 0; color: var(--store-muted); font-size: .9rem; line-height: 1.5; }
.auth-form__legal { margin: 0; font-size: .72rem; color: var(--store-muted); line-height: 1.45; text-align: center; }

.auth-recovery { display: grid; gap: 1rem; font-size: .9rem; line-height: 1.55; }
.auth-recovery__lead { margin: 0; color: var(--store-text, #1e293b); }
.auth-recovery__steps {
    margin: 0; padding-left: 1.15rem; display: grid; gap: .65rem; color: #334155;
}
.auth-recovery__steps code {
    font-size: .82em; background: #f1f5f9; padding: .1rem .35rem; border-radius: .35rem;
}
.auth-recovery__contact { margin: 0; font-weight: 600; }
.auth-recovery__note { margin: 0; font-size: .82rem; }

.auth-field { position: relative; display: grid; gap: .35rem; }
.auth-field__label {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .88rem;
    font-weight: 600;
    color: var(--store-muted);
    pointer-events: none;
    transition: .15s ease;
}
.auth-field__label--static { position: static; transform: none; font-size: .85rem; font-weight: 700; }
.auth-field__input {
    width: 100%;
    padding: 1.1rem .85rem .55rem;
    border-radius: .85rem;
    border: 2px solid var(--store-border);
    font: inherit;
    background: var(--store-surface);
    transition: border-color .15s, box-shadow .15s;
}
.auth-field__input:focus {
    outline: none;
    border-color: var(--store-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--store-primary) 15%, transparent);
}
.auth-field__input:not(:placeholder-shown) + .auth-field__label,
.auth-field__input:focus + .auth-field__label {
    top: .45rem;
    transform: none;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--store-primary);
}
.auth-field__password-wrap .store-password-field { margin: 0; gap: .35rem; }
.auth-field__password-wrap .store-password-field__wrap input {
    padding: .75rem 3rem .75rem .85rem;
    border-radius: .85rem;
    border: 2px solid var(--store-border);
}

.auth-password-strength {
    display: flex;
    gap: .35rem;
    margin-top: .35rem;
}
.auth-password-strength span {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: var(--store-border);
    transition: background .2s;
}
.auth-password-strength[data-level="1"] span:nth-child(1) { background: #f59e0b; }
.auth-password-strength[data-level="2"] span:nth-child(-n+2) { background: #3b82f6; }
.auth-password-strength[data-level="3"] span { background: #10b981; }

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}
.auth-check input { width: auto; margin-top: .15rem; accent-color: var(--store-primary); }
.auth-check--highlight {
    padding: .85rem 1rem;
    border-radius: .85rem;
    background: color-mix(in srgb, var(--store-primary) 6%, var(--store-surface));
    border: 1px solid color-mix(in srgb, var(--store-primary) 18%, var(--store-border));
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .95rem 1.25rem;
    border: 0;
    border-radius: .9rem;
    background: linear-gradient(135deg, var(--store-primary), color-mix(in srgb, var(--store-primary) 75%, #000));
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--store-primary) 35%, transparent);
    transition: transform .15s, filter .15s;
}
.auth-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Shared field feedback */
.field__feedback { margin: .25rem 0 0; font-size: .75rem; font-weight: 600; }
.field__feedback--error { color: #b91c1c; }
.field__feedback--valid { color: #047857; }
.field__feedback--pending { color: var(--store-muted); }
.field--error input, .field--error select { border-color: #ef4444 !important; }
.field--valid input:not(:disabled) { border-color: #10b981 !important; }

body.store-body--auth .store-header { display: none; }
.store-body--auth .store-footer { display: none; }
.store-body--auth .store-main { padding: 0; min-height: auto; }
