/**
 * Auth login / registro — SaaS premium (marketing + jerarquía).
 * Formularios, tabs y JS conservan mismas clases / IDs funcionales.
 */

:root {
    --navy: #061a33;
    --blue: #1d5cff;
    --blue2: #0d4fe0;
    --blue-strong: #105bea;
    --blue-bright: #2874ff;
    --yellow: #ffc400;
    --bg: #f4f7fb;
    --bg2: #eef3fb;
    --white: #ffffff;
    --text: #0b1f3a;
    --muted: #6b7280;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.auth-body {
    position: relative;
    min-height: 100vh;
    padding-bottom: 64px;
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3fb 100%);
}

.toggle-password .icon-eye-open,
.toggle-password .icon-eye-closed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* -------------------------------------------------------------------------
   Layout principal
   ------------------------------------------------------------------------- */
.container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 0 80px;
    max-width: 1440px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------
   Columna izquierda (landing)
   ------------------------------------------------------------------------- */
.left {
    flex: 1 1 48%;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 32px 200px 0;
}

.left__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: 0 32px 32px 0;
}

.left__bg::before {
    content: '';
    position: absolute;
    width: min(520px, 90vw);
    height: min(520px, 90vw);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(29, 92, 255, 0.14) 0%, transparent 65%);
    top: -12%;
    right: -8%;
}

.left__bg::after {
    content: '';
    position: absolute;
    width: min(380px, 75vw);
    height: min(380px, 75vw);
    border-radius: 50%;
    background: radial-gradient(circle at 60% 60%, rgba(255, 196, 0, 0.2) 0%, transparent 62%);
    bottom: 18%;
    left: -18%;
}

.left__inner {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 44px;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    opacity: 0.94;
}

.logo:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 6px;
    border-radius: 12px;
}

.logo__mark {
    flex-shrink: 0;
    filter: drop-shadow(0 10px 22px rgba(16, 91, 234, 0.22));
}

.logo__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1.05;
}

.logo__text small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #7a8699;
    text-transform: uppercase;
}

.title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: -0.035em;
}

.title__accent {
    color: var(--blue-strong);
    font-weight: 900;
}

.line {
    width: 72px;
    height: 5px;
    background: var(--yellow);
    border-radius: 10px;
    margin: 22px 0 26px;
}

.subtitle {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 36px;
    max-width: 480px;
    font-weight: 500;
}

.feature {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(6, 26, 51, 0.06);
}

.purple {
    background: linear-gradient(145deg, #eee6ff, #f3edff);
}

.blue {
    background: linear-gradient(145deg, #e6f0ff, #eef5ff);
}

.feature h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.feature p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 500;
}

/* Mascota + burbuja (abajo izquierda) */
.left__volt {
    position: absolute;
    bottom: 40px;
    left: 0;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    z-index: 2;
    max-width: 100%;
    padding-right: 16px;
}

.volt-mascot {
    flex-shrink: 0;
    line-height: 0;
}

.volt-mascot__img {
    width: 150px;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 16px 32px rgba(6, 26, 51, 0.12));
}

.volt-bubble {
    background: #fff;
    padding: 16px 18px;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    max-width: 260px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
    border: 1px solid rgba(16, 91, 234, 0.08);
}

.volt-bubble strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-weight: 800;
    font-size: 15px;
}

/* -------------------------------------------------------------------------
   Columna derecha + card
   ------------------------------------------------------------------------- */
.right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.card {
    width: 620px;
    max-width: 100%;
    background: var(--white);
    border-radius: 22px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 40px;
    margin-bottom: 28px;
    font-weight: 700;
}

.tabs a {
    font-size: 16px;
    color: #9aa4b2;
    text-decoration: none;
    padding-bottom: 10px;
    border-bottom: 4px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.tabs a:hover {
    color: var(--navy);
}

.tabs a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.tabs a.active {
    color: var(--blue-strong);
    border-bottom-color: var(--blue-strong);
}

.card h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.desc {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.5;
    font-weight: 500;
}

/* Campos */
.input,
.input-group {
    margin-bottom: 18px;
}

.input label,
.input-group label {
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
    color: var(--text);
}

/* Contenedor ícono + input (ícono absolute; el texto respeta padding-left) */
.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9aa4b2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon svg {
    display: block;
}

.input-wrap input {
    width: 100%;
    height: 60px;
    padding-left: 48px;
    padding-right: 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap--password input {
    padding-right: 48px;
}

.input-wrap input:focus {
    outline: none;
    border-color: var(--blue-strong);
    box-shadow: 0 0 0 3px rgba(16, 91, 234, 0.15);
}

.input-wrap.input-wrap--error > input {
    border-color: #f87171;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa4b2;
    padding: 0;
}

.toggle-password:hover {
    color: var(--blue-strong);
    background: rgba(16, 91, 234, 0.07);
}

.toggle-password:focus-visible {
    outline: 2px solid var(--blue-strong);
    outline-offset: 1px;
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.field-error {
    display: none;
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
    font-weight: 600;
}

.field-error.is-visible {
    display: block;
}

.auth-alert {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
    font-weight: 600;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin: 18px 0 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.options a,
.link-forgot {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

.options a:hover,
.link-forgot:hover {
    text-decoration: underline;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
}

.remember input {
    width: auto;
    accent-color: var(--blue-strong);
    cursor: pointer;
}

.btn {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #105bea, #2874ff);
    color: white;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover:not(:disabled) {
    filter: brightness(1.04);
    box-shadow: 0 12px 32px rgba(16, 91, 234, 0.35);
}

.btn:active:not(:disabled) {
    transform: scale(0.99);
}

.btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* CTA conversión */
.cta {
    margin-top: 48px;
    text-align: center;
}

.cta h3 {
    font-size: 40px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.cta p {
    color: var(--muted);
    margin: 14px 0 22px;
    font-size: 15px;
    font-weight: 500;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    padding: 0 22px;
    border-radius: 14px;
    border: 2px solid var(--blue-strong);
    background: var(--white);
    color: var(--blue-strong);
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.cta-btn__arrow {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.cta-btn:hover {
    background: #f8faff;
    box-shadow: 0 10px 28px rgba(16, 91, 234, 0.12);
}

.cta-btn:active {
    transform: scale(0.99);
}

.cta-btn:focus-visible {
    outline: 2px solid var(--blue-strong);
    outline-offset: 3px;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #7a8699;
    padding: 0 20px;
    line-height: 1.45;
}

.footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

.footer a:hover {
    text-decoration: underline;
}

.footer a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .container {
        padding: 0 40px;
        gap: 32px;
    }

    .left {
        padding-right: 16px;
        padding-bottom: 190px;
    }

    .title {
        font-size: 48px;
    }
}

@media (max-width: 900px) {
    .left__bg {
        display: none;
    }

    .container {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 32px 24px 100px;
        gap: 0;
    }

    .left {
        flex: none;
        width: 100%;
        padding: 24px 0 32px;
        text-align: center;
    }

    .left__inner {
        max-width: 520px;
        margin: 0 auto;
    }

    .logo {
        justify-content: center;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .feature {
        text-align: left;
    }

    .left__volt {
        position: relative;
        bottom: auto;
        left: auto;
        justify-content: center;
        margin-top: 24px;
        padding-right: 0;
    }

    .volt-mascot__img {
        width: 120px;
        max-height: 130px;
    }

    .right {
        width: 100%;
        padding-bottom: 24px;
    }

    .card {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
        padding: 36px 28px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px 16px 96px;
    }

    .title {
        font-size: 34px;
    }

    .cta h3 {
        font-size: 30px;
    }

    .tabs {
        gap: 24px;
        justify-content: center;
    }

    .volt-mascot__img {
        width: 100px;
    }

    .volt-bubble {
        max-width: 200px;
        font-size: 13px;
    }
}
