/* Auth — sistema premium (formulario protagonista, ilustración secundaria) */

.auth-page,
.auth-split-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: #18181b;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.auth-split-page h1,
.auth-split-page h2,
.auth-split-page p,
.auth-split-page label,
.auth-split-page button,
.auth-split-page input,
.auth-split-page a {
    font-family: inherit;
}

.auth-shell,
.auth-split {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
}

@media (min-width: 860px) {
    .auth-shell,
    .auth-split {
        grid-template-columns: 42% 58%;
    }
}

/* —— Columna visual (izquierda) —— */
.auth-visual,
.auth-split-media {
    display: none;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 20%, rgba(14, 143, 102, 0.12), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

@media (min-width: 860px) {
    .auth-visual,
    .auth-split-media {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2.5rem 2rem;
    }
}

.auth-visual-inner {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2.75rem;
    min-height: 100%;
}

.auth-visual-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.auth-visual-orb-1 {
    width: 22rem;
    height: 22rem;
    background: rgba(14, 165, 233, 0.12);
    top: -6rem;
    right: -4rem;
}

.auth-visual-orb-2 {
    width: 16rem;
    height: 16rem;
    background: rgba(2, 132, 199, 0.08);
    bottom: 8%;
    left: -3rem;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    text-align: left;
}

@media (prefers-reduced-motion: no-preference) {
    .auth-visual-content[data-animate] {
        animation: auth-visual-fade 0.55s ease both;
    }
}

@keyframes auth-visual-fade {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-visual-kicker {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #068C61;
    margin: 0 0 0.75rem;
}

.auth-visual-title {
    font-size: clamp(1.625rem, 2.8vw, 2.125rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #18181b;
    margin: 0;
}

.auth-visual-text {
    margin: 0.85rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 26rem;
}

/* Ilustración flotante — borde suave sobre el panel */
.auth-visual-illustration {
    display: block;
    width: 86%;
    max-width: 480px;
    height: auto;
    margin: 1.75rem auto 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: transparent;
    box-sizing: border-box;
    filter: drop-shadow(0 24px 45px rgba(15, 23, 42, 0.18));
}

@media (prefers-reduced-motion: no-preference) {
    .auth-visual-illustration {
        animation: auth-illustration-float 7s ease-in-out infinite;
    }
}

@keyframes auth-illustration-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-visual-content[data-animate],
    .auth-visual-illustration {
        animation: none !important;
    }
}

.auth-visual-stage {
    margin-top: 2rem;
    max-width: 22rem;
}

.auth-dash-mockup--compact {
    margin-top: 1.75rem;
    max-width: 20rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.18);
}

/* Mockups compartidos */
.auth-mockup-bar,
.auth-store-mockup-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    background: #f4f4f5;
    border-bottom: 1px solid #e4e4e7;
}

.auth-mockup-bar span,
.auth-store-mockup-bar span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #d4d4d8;
}

.auth-mockup-url,
.auth-store-mockup-url {
    flex: 1;
    margin-left: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: #fff;
    font-size: 0.68rem;
    color: #71717a;
    text-align: center;
}

/* Mockup mini tienda (registro) */
.auth-store-mockup {
    margin-top: 2rem;
    max-width: 22rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.28);
}

.auth-visual-inner--store .auth-visual-orb-1 {
    background: rgba(14, 143, 102, 0.1);
}

.auth-visual-inner--store .auth-visual-orb-2 {
    background: rgba(5, 150, 105, 0.07);
}

.auth-store-mockup-body {
    padding: 0.85rem;
}

.auth-store-mockup-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.auth-store-mockup-logo {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #068C61, #059669);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-store-mockup-head strong {
    display: block;
    font-size: 0.82rem;
    color: #18181b;
}

.auth-store-mockup-head span {
    display: block;
    font-size: 0.68rem;
    color: #71717a;
}

.auth-store-mockup-wa {
    margin-left: auto;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: 0.62rem;
    font-weight: 700;
}

.auth-store-mockup-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.auth-store-mockup-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #f4f4f5;
}

.auth-store-mockup-list strong {
    display: block;
    font-size: 0.78rem;
    color: #18181b;
}

.auth-store-mockup-list small {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.62rem;
    color: #068C61;
    font-weight: 600;
}

.auth-store-mockup-list span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #18181b;
}

.auth-store-mockup-cta {
    margin-top: 0.75rem;
    padding: 0.55rem;
    border-radius: 10px;
    background: #18181b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

/* Mockup dashboard (login) */
.auth-dash-mockup {
    margin-top: 2rem;
    max-width: 22rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.28);
}

.auth-visual-inner--dashboard .auth-visual-orb-1 {
    background: rgba(14, 165, 233, 0.1);
}

.auth-visual-inner--dashboard .auth-visual-orb-2 {
    background: rgba(24, 24, 27, 0.06);
}

.auth-visual-inner--dashboard .auth-visual-kicker {
    color: #0f172a;
}

.auth-dash-mockup-body {
    padding: 0.85rem;
}

.auth-dash-store-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f4f4f5;
}

.auth-store-mockup-logo--sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.65rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #18181b, #3f3f46);
}

.auth-dash-store-row strong {
    display: block;
    font-size: 0.82rem;
    color: #18181b;
}

.auth-dash-store-row span {
    display: block;
    font-size: 0.68rem;
    color: #71717a;
}

.auth-dash-badge {
    margin-left: auto;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
}

.auth-dash-badge--online {
    background: #ecfdf5;
    color: #166534;
}

.auth-dash-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.auth-dash-stat {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #f4f4f5;
}

.auth-dash-stat span {
    display: block;
    font-size: 0.62rem;
    color: #71717a;
    line-height: 1.3;
}

.auth-dash-stat strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1rem;
    color: #18181b;
    letter-spacing: -0.02em;
}

.auth-dash-stat--warn {
    background: #fffbeb;
    border-color: #fde68a;
}

.auth-dash-stat--warn strong {
    color: #b45309;
}

.auth-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.auth-dash-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #f4f4f5;
    font-size: 0.74rem;
    color: #18181b;
}

.auth-dash-tag {
    flex-shrink: 0;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
}

.auth-dash-tag--ok {
    background: #ecfdf5;
    color: #166534;
}

.auth-dash-tag--warn {
    background: #fffbeb;
    color: #b45309;
}

.auth-dash-tag--info {
    background: #eff6ff;
    color: #1d4ed8;
}

.auth-dash-cta {
    margin-top: 0.75rem;
    padding: 0.55rem;
    border-radius: 10px;
    background: #18181b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.auth-visual-stage .landing-browser {
    width: 100%;
}

/* —— Panel formulario (derecha) —— */
.auth-panel,
.auth-split-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.25rem 1rem 2.5rem;
    background: #ffffff;
}

@media (min-width: 860px) {
    .auth-panel,
    .auth-split-panel {
        padding: 1.75rem 2.5rem 2.5rem;
    }
}

.auth-panel-body,
.auth-split-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
}

.auth-form-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
    .auth-form-card[data-animate="fade-up"] {
        animation: auth-form-fade-up 0.5s ease both;
    }
}

@keyframes auth-form-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-topbar,
.auth-split-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.auth-topbar-actions,
.auth-split-top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.auth-split-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: #18181b;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.auth-split-brand:hover {
    color: #068C61;
}

.auth-topbar .auth-home-button,
.auth-home-button,
.auth-home-btn,
.auth-split-back {
    height: 42px;
    max-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    color: #334155;
    text-decoration: none;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    box-sizing: border-box;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-home-btn:hover,
.auth-split-back:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.auth-split-messages {
    margin-bottom: 1rem;
}

.auth-flash {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.8125rem;
}

.auth-flash--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-flash--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

.auth-flash--info,
.auth-flash--warning {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.auth-panel-kicker,
.auth-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #068C61;
    margin: 0 0 0.5rem;
}

.auth-panel-title,
.auth-form-inner h1,
.auth-panel h1 {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.035em;
    margin: 0;
    line-height: 1.15;
}

.auth-panel-lead {
    font-size: 0.9375rem;
    color: #71717a;
    margin: 0.45rem 0 0;
    line-height: 1.5;
}

.auth-errors {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.8125rem;
    border: 1px solid #fecaca;
}

.auth-form {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.auth-field,
.auth-input-group {
    width: 100%;
    min-width: 0;
    margin-bottom: 18px;
}

.auth-field:last-of-type,
.auth-input-group:last-of-type {
    margin-bottom: 0;
}

.auth-form .form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: #3f3f46;
}

.auth-form .input,
.auth-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 54px;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid #dbe3ef;
    font-size: 1rem;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-form .input:hover {
    border-color: #cbd5e1;
}

.auth-form .input:focus,
.auth-form .input:focus-visible,
.auth-input:focus {
    outline: none;
    border-color: #0E8F66;
    box-shadow: 0 0 0 4px rgba(14, 143, 102, 0.12);
}

.auth-field-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.3rem;
}

.auth-field-hint,
.auth-help {
    font-size: 14px;
    color: #64748b;
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.4;
}

.auth-password-wrap {
    position: relative;
    width: 100%;
}

.auth-password-wrap .input {
    padding-right: 2.75rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #71717a;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}

.auth-password-toggle:hover {
    color: #3f3f46;
    background: #f4f4f5;
}

.auth-password-toggle:focus {
    outline: none;
}

.auth-password-toggle:focus-visible {
    outline: none;
    color: #068C61;
    box-shadow: 0 0 0 3px rgba(14, 143, 102, 0.14);
}

.auth-password-icon {
    display: block;
    flex-shrink: 0;
}

.auth-password-icon[hidden] {
    display: none;
}

.auth-row-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
}

.auth-row-split > div {
    min-width: 0;
}

.auth-row-split .input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-forgot {
    text-align: right;
    margin: 0.75rem 0 0;
}

.auth-forgot a {
    font-size: 0.8125rem;
    color: #068C61;
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot a:hover {
    color: #056947;
    text-decoration: underline;
}

.auth-submit,
.auth-primary-button {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    height: 54px;
    min-height: 54px;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 16px;
    border: none;
    background: linear-gradient(180deg, #0E8F66 0%, #068C61 100%);
    color: #fff;
    cursor: pointer;
    margin-top: 18px;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 2px 8px rgba(14, 143, 102, 0.2), 0 12px 28px -10px rgba(14, 143, 102, 0.35);
}

.auth-submit:hover:not(:disabled):not(.is-disabled) {
    background: linear-gradient(180deg, #068C61 0%, #056947 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 143, 102, 0.24), 0 16px 36px -10px rgba(14, 143, 102, 0.38);
}

.auth-submit:active:not(:disabled):not(.is-disabled) {
    transform: translateY(0);
}

.auth-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 143, 102, 0.25);
}

.auth-submit:disabled,
.auth-submit.is-disabled {
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #e2e8f0;
    color: #94a3b8;
}

.auth-submit:disabled:hover,
.auth-submit.is-disabled:hover {
    background: #e2e8f0;
    color: #94a3b8;
    transform: none;
    box-shadow: none;
}

.auth-submit.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.auth-submit.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: auth-submit-spin 0.7s linear infinite;
}

@keyframes auth-submit-spin {
    to { transform: rotate(360deg); }
}

.auth-divider {
    position: relative;
    margin: 1.35rem 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e4e4e7;
}

.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 0.75rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a1a1aa;
    font-weight: 500;
}

.auth-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 0 14px 0 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    border-radius: 6px;
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    text-decoration: none;
    box-shadow: none;
    box-sizing: border-box;
    flex: 0 0 auto;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-google-btn svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-shrink: 0;
    display: block;
}

.auth-google-btn:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
}

.auth-form .input::placeholder {
    color: #a1a1aa;
}

.auth-google-btn.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
    color: #71717a;
    background: #fafafa;
    font-family: inherit;
}

.auth-google-only {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.auth-google-only .auth-google-btn {
    align-self: flex-start;
}

.auth-google-only .auth-panel-lead {
    margin-bottom: 1.15rem;
}

@media (max-width: 899px) {
    .auth-google-only .auth-google-btn {
        align-self: flex-start;
        width: max-content;
        height: 44px;
        min-height: 44px;
    }
}

.auth-panel-footer {
    margin-top: 1.75rem;
    font-size: 0.875rem;
    color: #71717a;
    text-align: center;
}

@media (min-width: 900px) {
    .auth-panel-footer {
        text-align: left;
    }
}

.auth-panel-footer a {
    color: #068C61;
    font-weight: 600;
    text-decoration: none;
}

.auth-panel-footer a:hover {
    color: #056947;
    text-decoration: underline;
}

.auth-panel-note {
    margin-top: 0.85rem;
    font-size: 0.8125rem;
    color: #a1a1aa;
    text-align: center;
    line-height: 1.45;
}

@media (min-width: 900px) {
    .auth-panel-note {
        text-align: left;
    }
}

.auth-panel-note a {
    color: #52525b;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-panel-note a:hover {
    color: #068C61;
}

.auth-coming-list {
    margin: 1.25rem 0 1.5rem;
    padding-left: 1.15rem;
    color: #52525b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-coming-list li + li {
    margin-top: 0.35rem;
}

.auth-dev-hint {
    margin-top: 1.25rem;
    font-size: 0.72rem;
    color: #a1a1aa;
}

.auth-dev-hint summary {
    cursor: pointer;
    font-weight: 500;
    color: #71717a;
    list-style: none;
}

.auth-dev-hint summary::-webkit-details-marker {
    display: none;
}

.auth-dev-hint ul {
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    background: #f4f4f5;
    border-radius: 10px;
    list-style: none;
    border: 1px solid #e4e4e7;
}

.auth-dev-link-wrap {
    margin: 0.5rem 0 0.75rem;
    word-break: break-all;
}

.auth-dev-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #068C61;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-note {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: #71717a;
    line-height: 1.5;
}

.auth-errors--info {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}

.auth-actions--stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.auth-submit--secondary {
    background: #fff;
    color: #18181b;
    border: 1px solid #e4e4e7;
    box-shadow: none;
}

.auth-submit--secondary:hover:not(:disabled) {
    background: #fafafa;
    border-color: #d4d4d8;
    color: #18181b;
    transform: none;
}

.auth-link-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #52525b;
    text-decoration: none;
}

.auth-link-secondary:hover {
    color: #18181b;
}

.auth-link-secondary--button {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.auth-success-msg {
    font-size: 0.9375rem;
    color: #52525b;
    line-height: 1.55;
    margin-top: 1rem;
}

.auth-alt-methods {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-alt-link {
    display: block;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: #18181b;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.auth-alt-link:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0284c7;
}

.auth-form .mfa-code-input {
    font-size: 1.25rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Móvil — formulario primero, visual oculto */
@media (max-width: 859px) {
    .auth-shell,
    .auth-split {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    .auth-panel,
    .auth-split-panel {
        order: 1;
        padding: 1.25rem 16px 2.5rem;
        background: #ffffff;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .auth-visual,
    .auth-split-media {
        display: none;
    }

    .auth-topbar,
    .auth-split-top {
        max-width: 100%;
        margin-bottom: 1.25rem;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .auth-topbar-actions,
    .auth-split-top-actions {
        margin-left: auto;
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
    }

    .auth-split-brand {
        min-width: 0;
        max-width: calc(100% - 8rem);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .auth-form-card {
        max-width: 100%;
    }

    .auth-panel-footer {
        text-align: center;
    }

    .auth-panel-note {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-row-split {
        grid-template-columns: 1fr;
    }
}

/* Cloudflare Turnstile — integrado al formulario, sin card */
.auth-turnstile {
    margin-top: 18px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 100%;
    overflow: hidden;
    background: none;
    border: none;
    padding: 0;
    min-height: 0;
}

.auth-turnstile .cf-turnstile,
.auth-turnstile iframe,
.auth-turnstile > div {
    max-width: 100%;
}

.auth-turnstile-error {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.45;
    width: 100%;
    box-sizing: border-box;
}

.auth-turnstile-error[hidden] {
    display: none !important;
}

.auth-form .auth-turnstile + .auth-submit,
.auth-form .auth-turnstile + .auth-primary-button {
    margin-top: 0;
}

@media (max-width: 859px) {
    .auth-topbar .auth-home-button,
    .auth-home-button {
        height: 38px;
        max-height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }
}

/* —— Intención Comprar / Vender —— */
.auth-intent {
    margin-bottom: 1.25rem;
}

.auth-intent-label {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #3f4f55;
}

.auth-intent-note {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.auth-intent-cards {
    display: grid;
    gap: 0.65rem;
}

.auth-intent-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #dbe5e8;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
    font: inherit;
    width: 100%;
    cursor: pointer;
    appearance: none;
}

.auth-intent-card:hover {
    border-color: #b8cfd4;
}

.auth-intent-card:focus-visible {
    outline: 2px solid rgba(23, 163, 74, 0.45);
    outline-offset: 2px;
}

.auth-intent-visual.is-hidden {
    display: none;
}

.auth-visual-stack {
    width: 100%;
    height: 100%;
}

.auth-signup-consent {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-google-wrap.is-hidden {
    display: none;
}

.auth-signup-email.is-hidden {
    display: none;
}

.auth-google-wrap:not(.is-hidden) {
    animation: auth-fade-in 0.2s ease;
}

.auth-signup-email:not(.is-hidden) {
    animation: auth-fade-in 0.2s ease;
}

@keyframes auth-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-intent-card.is-active {
    border-color: #17A34A;
    box-shadow: 0 0 0 1px rgba(23, 163, 74, 0.25);
}

.auth-intent-card-icon {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: #17A34A;
}

.auth-intent-card-icon svg {
    display: block;
}

.auth-intent-card-title {
    font-weight: 650;
    color: #0f172a;
}

.auth-intent-card-text {
    grid-column: 2;
    font-size: 0.82rem;
    color: #64748b;
}

.auth-terms {
    margin: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e4ecef;
    border-radius: 12px;
    background: #f8fafb;
}

.auth-terms-label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #3f3f46;
}

.auth-terms-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.auth-terms-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.auth-terms-check {
    display: block;
}

.auth-terms-checkbox:focus-visible + .auth-terms-box {
    box-shadow: 0 0 0 3px rgba(23, 163, 74, 0.18);
}

.auth-terms-checkbox:checked + .auth-terms-box {
    border-color: #17A34A;
    background: #17A34A;
    color: #fff;
}

.auth-terms-label:hover .auth-terms-box {
    border-color: #94a3b8;
}

.auth-terms-text a {
    color: #17A34A;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-terms-text a:hover {
    color: #14833c;
}

.auth-intent-segment {
    display: flex;
    padding: 4px;
    border-radius: 12px;
    background: #eef3f4;
    gap: 4px;
    margin-bottom: 1rem;
}

.auth-intent-segment-btn {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
}

.auth-intent-segment-btn.is-active {
    background: #fff;
    color: #17A34A;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
