/*
 * Shared "auth shell" card used across the onboarding funnel: register, sign
 * in, magic-link states, and the post-signup steps (choose plan / create
 * store). Load alongside marketing.css (for --card-bg/--accent-start/etc.
 * theme tokens and .ambient-bg/.blob decorations) on public_base.html pages.
 */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem clamp(1rem, 5vw, 3rem);
}
.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: clamp(1.75rem, 5vw, 2.75rem);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.auth-card.is-wide { max-width: 560px; }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
}
.auth-brand i { color: var(--accent-start); }

.auth-steps { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-bottom: 1.6rem; }
.auth-steps .step { width: 8px; height: 8px; border-radius: 50%; background: var(--card-border); transition: all 0.2s ease; }
.auth-steps .step.is-active { width: 22px; border-radius: 4px; background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); }
.auth-steps .step.is-done { background: var(--accent-start); }

.auth-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.4rem; }
.auth-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem;
}
.auth-head h1 { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--text-primary); }
.auth-head p { margin: 2px 0 0; color: var(--text-secondary); font-size: 0.88rem; }

.auth-card h1 { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.5rem; }
.auth-card .sub { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.6rem; }

.auth-label { display: block; font-weight: 700; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 0.45rem; }
.auth-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-solid);
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1.1rem;
    transition: outline-color 0.15s ease;
}
.auth-input:focus { outline: 2px solid var(--accent-start); outline-offset: 1px; }
.auth-input::placeholder { color: var(--text-secondary); opacity: 0.7; }

.auth-card .btn-primary,
.auth-card .btn-ghost,
.auth-card .btn-danger {
    width: 100%;
    justify-content: center;
}
.auth-card .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff; border: none; border-radius: 100px; padding: 0.85rem 1.6rem;
    font-weight: 700; font-size: 0.95rem; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 0.5rem;
}

.auth-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: var(--danger, #dc2626);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.auth-sent { text-align: center; }
.auth-sent .sent-icon,
.auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-start);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.2rem;
}
.auth-icon.is-danger { background: rgba(220, 38, 38, 0.12); color: var(--danger, #dc2626); }

.auth-foot { margin-top: 1.4rem; text-align: center; color: var(--text-secondary); font-size: 0.85rem; }
.auth-foot a { color: var(--accent-start); text-decoration: none; font-weight: 700; }

.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.4rem 0; color: var(--text-secondary); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--card-border); }

@media (max-width: 480px) {
    .auth-card { border-radius: 20px; }
    .auth-head { gap: 0.7rem; }
    .auth-avatar { width: 42px; height: 42px; font-size: 1rem; }
}
