/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES — Kinetic Arena Design
   Login · Registro · Registro Exitoso
   ═══════════════════════════════════════════════════════════════════════════ */

/* Google Fonts cargadas via PHP (wp_enqueue_style) */

/* ── Base ─────────────────────────────────────────────────────────────────── */
.ctm-auth-page {
    /* flex: 1 para ocupar el espacio disponible en #ctm-app-root sin apilar 100vh */
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #081425;
    color: #d8e3fb;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden; /* evita scroll horizontal de los elementos decorativos */
    /* overflow-y intencional: sin restricción para que el form largo pueda scrollear */
    position: relative;
}

/* Decoración kinética de fondo */
.ctm-auth-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.ctm-auth-bg::before {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 40%; height: 120%;
    background: rgba(189,237,77,.04);
    clip-path: polygon(10% 0,100% 0,90% 100%,0 100%);
    transform: rotate(12deg);
    filter: blur(60px);
}
.ctm-auth-bg::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 50%; height: 80%;
    background: rgba(152,213,158,.04);
    transform: rotate(-12deg);
    filter: blur(60px);
}

/* ── Main ─────────────────────────────────────────────────────────────────── */
.ctm-auth-main {
    flex: 1;
    min-height: 0;        /* permite que el flex-child scrollee correctamente */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    overflow-y: auto;     /* scroll solo si el contenido es más largo que la pantalla */
}

/* ── Card bento ───────────────────────────────────────────────────────────── */
.ctm-auth-card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    max-width: 960px;
    width: 100%;
    background: #111c2d;
    border-radius: 24px;
    overflow: hidden;               /* clips border-radius en las esquinas */
    box-shadow: 0 20px 40px rgba(0,0,0,.6);
    /* Altura máxima = viewport menos el padding del main (2rem × 2) y el footer (~60px) */
    max-height: calc(100dvh - 5rem);
    /* Los paneles que necesiten scroll lo manejan internamente */
}

/* ── Panel izquierdo ──────────────────────────────────────────────────────── */
.ctm-auth-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    background: #1f2a3c;
    min-height: 0;      /* permite que el grid restrinja la altura vía max-height del card */
    overflow: hidden;
}
.ctm-auth-left-top { position: relative; z-index: 1; }
.ctm-auth-left-title {
    font-family: 'Lexend', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -.04em;
    color: #bded4d;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}
.ctm-auth-left-sub {
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    color: rgba(216,227,251,.55);
    margin: .75rem 0 0;
    letter-spacing: .02em;
}
.ctm-auth-left-img {
    position: absolute;
    bottom: 0; right: 0;
    width: 100%; height: 65%;
    opacity: .4;
    pointer-events: none;
}
.ctm-auth-left-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1);
    transition: filter .7s ease;
}
.ctm-auth-left:hover .ctm-auth-left-img img { filter: grayscale(0); }
.ctm-auth-left-bottom { position: relative; z-index: 1; }
.ctm-auth-brand-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .4rem;
}
.ctm-auth-brand-line {
    width: 2rem; height: 2px;
    background: #bded4d;
    flex-shrink: 0;
}
.ctm-auth-brand-label {
    font-family: 'Lexend', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #bded4d;
}
.ctm-auth-brand-tagline {
    font-size: .75rem;
    color: rgba(216,227,251,.45);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0;
}

/* ── Panel derecho ────────────────────────────────────────────────────────── */
.ctm-auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    background: #040e1f;
    min-height: 0;    /* necesario para que el grid item respete max-height del card */
    overflow-y: auto; /* fallback scroll por si el contenido supera el card */
}
.ctm-auth-form-wrap { width: 100%; max-width: 400px; }

/* Logo móvil */
.ctm-auth-mobile-logo { display: none; margin-bottom: 2rem; }
.ctm-auth-mobile-logo h1 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.75rem; font-weight: 900; font-style: italic;
    letter-spacing: -.04em; color: #bded4d;
    text-transform: uppercase; margin: 0;
}

/* ── Encabezado de form ───────────────────────────────────────────────────── */
.ctm-auth-form-header { margin-bottom: 2rem; }
.ctm-auth-form-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.75rem; font-weight: 800;
    letter-spacing: -.03em; text-transform: uppercase;
    color: #d8e3fb; margin: 0; line-height: 1.1;
}
.ctm-auth-form-subtitle {
    color: rgba(196,201,176,.8);
    margin: .5rem 0 0; font-size: .9rem;
}

/* ── Campos ───────────────────────────────────────────────────────────────── */
.ctm-auth-field { margin-bottom: 1.25rem; }
.ctm-auth-field-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .4rem;
}
.ctm-auth-label,
label.ctm-auth-label {
    display: block !important;
    font-family: 'Lexend', sans-serif !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: #bded4d !important;
    margin-bottom: .4rem !important;
    margin-left: 2px !important;
}
.ctm-auth-input-wrap { position: relative; }
.ctm-auth-input-icon {
    position: absolute;
    left: 1rem; top: 50%; transform: translateY(-50%);
    color: rgba(216,227,251,.4);
    font-size: 1.1rem;
    transition: color .2s;
    pointer-events: none;
    user-select: none;
}
.ctm-auth-input-wrap:focus-within .ctm-auth-input-icon { color: #bded4d !important; }

/* Inputs y selects */
.ctm-auth-input,
input.ctm-auth-input,
select.ctm-auth-select,
.ctm-auth-select {
    width: 100% !important;
    padding: .9rem 1rem .9rem 3rem !important;
    background: #152031 !important;
    color: #d8e3fb !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .9rem !important;
    outline: none !important;
    transition: box-shadow .2s !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    color-scheme: dark !important;
}
.ctm-auth-input:focus,
.ctm-auth-select:focus {
    box-shadow: 0 2px 0 0 #bded4d !important;
    border-radius: 12px 12px 0 0 !important;
}
.ctm-auth-input::placeholder { color: rgba(216,227,251,.3) !important; }
/* Sin ícono */
.ctm-auth-input-no-icon,
input.ctm-auth-input-no-icon { padding-left: 1rem !important; }

/* Password: ícono de toggle a la derecha */
.ctm-auth-pass-wrap { position: relative; }
.ctm-auth-toggle-pass {
    position: absolute !important;
    right: .75rem !important; top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: rgba(216,227,251,.4) !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    transition: color .2s !important;
}
.ctm-auth-toggle-pass:hover { color: #bded4d !important; }

/* Input indicator (availability) */
.ctm-auth-indicator {
    position: absolute;
    right: .75rem; top: 50%; transform: translateY(-50%);
    font-size: .75rem; font-weight: 700;
}

/* ── Recordar + Olvidaste ─────────────────────────────────────────────────── */
.ctm-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.ctm-auth-remember {
    display: flex; align-items: center; gap: .5rem;
    cursor: pointer; user-select: none;
}
.ctm-auth-remember input[type="checkbox"] {
    width: 18px !important; height: 18px !important;
    border-radius: 4px !important;
    background: #152031 !important;
    border: none !important;
    accent-color: #bded4d !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}
.ctm-auth-remember-label { font-size: .85rem; color: rgba(216,227,251,.65); }
.ctm-auth-forgot {
    font-size: .8rem; font-weight: 500;
    color: #98d59e; text-decoration: none;
    transition: color .2s;
}
.ctm-auth-forgot:hover { color: #bded4d; }

/* ── Botón submit ─────────────────────────────────────────────────────────── */
.ctm-auth-submit,
button.ctm-auth-submit {
    width: 100% !important;
    padding: 1rem !important;
    background: linear-gradient(135deg, #bded4d, #a2d031) !important;
    color: #081425 !important;
    font-family: 'Lexend', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(189,237,77,.2) !important;
    transition: filter .2s, transform .1s !important;
    margin-bottom: 0 !important;
}
.ctm-auth-submit:hover { filter: brightness(1.1) !important; }
.ctm-auth-submit:active { transform: scale(.98) !important; }
.ctm-auth-submit:disabled { opacity: .6 !important; cursor: not-allowed !important; }

/* ── Divider ──────────────────────────────────────────────────────────────── */
.ctm-auth-divider {
    position: relative;
    margin: 2rem 0;
    text-align: center;
}
.ctm-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(216,227,251,.08);
}
.ctm-auth-divider span {
    position: relative;
    background: #040e1f;
    padding: 0 1rem;
    font-size: .65rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: rgba(216,227,251,.3);
}

/* ── Link de registro ─────────────────────────────────────────────────────── */
.ctm-auth-alt-link {
    text-align: center;
    font-size: .85rem;
    color: rgba(196,201,176,.65);
    margin-top: 2rem;
}
.ctm-auth-alt-link a {
    color: #bded4d; font-weight: 700;
    text-decoration: none; margin-left: 4px;
}
.ctm-auth-alt-link a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Mensajes de error / éxito ────────────────────────────────────────────── */
.ctm-auth-msg {
    padding: .75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: .85rem;
    display: none;
}
.ctm-auth-msg.is-error {
    background: rgba(227,6,19,.15);
    color: #ff6b6b;
    border-left: 3px solid #e30613;
    display: block;
}
.ctm-auth-msg.is-success {
    background: rgba(189,237,77,.1);
    color: #bded4d;
    border-left: 3px solid #bded4d;
    display: block;
}

/* ── Step indicator (registro multi-paso) ─────────────────────────────────── */
.ctm-auth-steps {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.ctm-auth-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ctm-auth-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #152031;
    border: 2px solid rgba(216,227,251,.12);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Lexend', sans-serif;
    font-size: .75rem; font-weight: 700;
    color: rgba(216,227,251,.35);
    transition: all .2s;
}
.ctm-auth-step.active .ctm-auth-step-num { background: #bded4d; border-color: #bded4d; color: #081425; }
.ctm-auth-step.done .ctm-auth-step-num { background: rgba(189,237,77,.15); border-color: #bded4d; color: #bded4d; }
.ctm-auth-step-lbl {
    font-size: .58rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: rgba(216,227,251,.3);
}
.ctm-auth-step.active .ctm-auth-step-lbl { color: #bded4d; }
.ctm-auth-step-conn {
    flex: 1; height: 1px;
    background: rgba(216,227,251,.1);
    margin: 0 .5rem;
    margin-bottom: 1.1rem;
}

/* ── Fila de 2 campos ─────────────────────────────────────────────────────── */
.ctm-auth-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

/* ── Upload foto (registro) ───────────────────────────────────────────────── */
.ctm-auth-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}
.ctm-auth-photo-preview {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #152031;
    border: 2px dashed rgba(189,237,77,.3);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; overflow: hidden;
    transition: border-color .2s;
}
.ctm-auth-photo-preview:hover { border-color: #bded4d; }
.ctm-auth-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.ctm-auth-photo-preview .ctm-auth-photo-icon {
    font-size: 1.5rem; color: rgba(189,237,77,.5);
    user-select: none;
}
.ctm-auth-photo-hint {
    font-size: .7rem; color: rgba(216,227,251,.4);
    margin-top: .5rem; text-align: center;
}

/* ── Paso de form (registro) ──────────────────────────────────────────────── */
.ctm-auth-form-step { display: none; }
.ctm-auth-form-step.active { display: block; }
.ctm-auth-step-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    color: #d8e3fb; margin: 0 0 1.25rem;
    text-transform: uppercase; letter-spacing: -.01em;
}

/* ── Navegación entre pasos ───────────────────────────────────────────────── */
.ctm-auth-step-nav {
    display: flex; gap: .75rem;
    margin-top: 1.5rem; justify-content: flex-end;
}
.ctm-auth-btn-back {
    padding: .75rem 1.5rem !important;
    background: transparent !important;
    color: rgba(216,227,251,.6) !important;
    border: 1px solid rgba(216,227,251,.15) !important;
    border-radius: 50px !important;
    font-family: 'Lexend', sans-serif !important;
    font-weight: 600 !important; font-size: .85rem !important;
    cursor: pointer !important;
    transition: border-color .2s, color .2s !important;
}
.ctm-auth-btn-back:hover { border-color: #bded4d !important; color: #bded4d !important; }
.ctm-auth-btn-next {
    padding: .75rem 1.75rem !important;
    background: linear-gradient(135deg,#bded4d,#a2d031) !important;
    color: #081425 !important;
    border: none !important;
    border-radius: 50px !important;
    font-family: 'Lexend', sans-serif !important;
    font-weight: 700 !important; font-size: .85rem !important;
    cursor: pointer !important;
    transition: filter .2s !important;
}
.ctm-auth-btn-next:hover { filter: brightness(1.08) !important; }

/* ── Force strength meter (ya existe en registration.css) ─────────────────── */
.ctm-auth-page .ctm-password-strength { margin-top: 4px; }

/* ── Field error / hint ───────────────────────────────────────────────────── */
.ctm-auth-page .ctm-field-error { color: #ff6b6b; font-size: .75rem; display: block; margin-top: 3px; }
.ctm-auth-page .ctm-field-hint { color: rgba(216,227,251,.4); font-size: .72rem; margin-top: 3px; display: block; }

/* ── Success page ─────────────────────────────────────────────────────────── */
.ctm-auth-success-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(189,237,77,.1);
    border: 2px solid rgba(189,237,77,.25);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}
.ctm-auth-success-icon .material-symbols-outlined {
    font-size: 2.25rem; color: #bded4d;
}
.ctm-auth-success-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.6rem; font-weight: 800;
    letter-spacing: -.03em; text-transform: uppercase;
    color: #d8e3fb; text-align: center; margin: 0 0 .75rem;
}
.ctm-auth-success-body { font-size: .9rem; color: rgba(216,227,251,.7); text-align: center; margin-bottom: 1.5rem; }
.ctm-auth-success-email {
    display: inline-block;
    background: rgba(189,237,77,.1);
    border: 1px solid rgba(189,237,77,.2);
    border-radius: 8px;
    padding: .5rem 1.25rem;
    font-weight: 700; color: #bded4d;
    font-family: 'Lexend', sans-serif;
    font-size: .9rem; margin-bottom: 1.5rem;
}
.ctm-auth-success-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ctm-auth-success-steps li {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(216,227,251,.05);
    font-size: .85rem; color: rgba(216,227,251,.7);
}
.ctm-auth-success-steps li:last-child { border-bottom: none; }
.ctm-auth-success-step-num {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: #bded4d; color: #081425;
    font-family: 'Lexend', sans-serif; font-size: .7rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.ctm-auth-success-links { text-align: center; margin-top: 1rem; }
.ctm-auth-success-links a {
    color: #98d59e; font-size: .85rem; font-weight: 600;
    text-decoration: none;
}
.ctm-auth-success-links a:hover { color: #bded4d; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.ctm-auth-footer {
    padding: 1.25rem 1.5rem;
    background: rgba(4,14,31,.5);
    border-top: 1px solid rgba(216,227,251,.04);
    backdrop-filter: blur(8px);
    position: relative; z-index: 1;
}
.ctm-auth-footer-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: space-between; gap: 1rem;
}
.ctm-auth-footer-brand { display: flex; align-items: center; gap: .5rem; }
.ctm-auth-footer-name {
    font-family: 'Lexend', sans-serif;
    font-size: .68rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: -.01em;
    color: #bded4d;
}
.ctm-auth-footer-sub {
    font-family: 'Lexend', sans-serif;
    font-size: .5rem; text-transform: uppercase;
    letter-spacing: .15em; color: rgba(216,227,251,.2);
}
.ctm-auth-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.ctm-auth-footer-links a {
    font-size: .58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: rgba(216,227,251,.35); text-decoration: none;
    transition: color .2s;
}
.ctm-auth-footer-links a:hover { color: #bded4d; }
.ctm-auth-footer-copy {
    font-size: .58rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .1em;
    color: rgba(216,227,251,.2);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ctm-auth-card { grid-template-columns: 1fr; border-radius: 16px; }
    .ctm-auth-left { display: none; }
    .ctm-auth-right { padding: 2rem 1.5rem; }
    .ctm-auth-mobile-logo { display: block; }
    .ctm-auth-main { padding: 1rem; align-items: flex-start; padding-top: 2rem; }
    .ctm-auth-footer-inner { flex-direction: column; text-align: center; }
    .ctm-auth-fields-row { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   OVERRIDES: formulario registro (clases existentes de registration.css)
   dentro del nuevo layout ctm-auth-page
   ───────────────────────────────────────────────────────────────────────── */

.ctm-auth-page .ctm-input,
.ctm-auth-page input.ctm-input,
.ctm-auth-page .ctm-select,
.ctm-auth-page select.ctm-select {
    background: #152031 !important;
    color: #d8e3fb !important;
    border: none !important;
    border-radius: 12px !important;
    padding: .85rem 1rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .9rem !important;
    outline: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    color-scheme: dark !important;
    transition: box-shadow .2s !important;
}
.ctm-auth-page .ctm-input:focus,
.ctm-auth-page .ctm-select:focus {
    box-shadow: 0 2px 0 0 #bded4d !important;
    border-radius: 12px 12px 0 0 !important;
}
.ctm-auth-page .ctm-input::placeholder { color: rgba(216,227,251,.3) !important; }

.ctm-auth-page .ctm-label,
.ctm-auth-page label.ctm-label {
    font-family: 'Lexend', sans-serif !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: #bded4d !important;
    margin-bottom: .4rem !important;
    display: block !important;
}

.ctm-auth-page .ctm-required { color: #bded4d !important; }

/* Botones nav pasos */
.ctm-auth-page .ctm-btn-next {
    padding: .75rem 1.75rem !important;
    background: linear-gradient(135deg,#bded4d,#a2d031) !important;
    color: #081425 !important; border: none !important;
    border-radius: 50px !important;
    font-family: 'Lexend', sans-serif !important;
    font-weight: 700 !important; font-size: .85rem !important;
    cursor: pointer !important;
    transition: filter .2s !important;
}
.ctm-auth-page .ctm-btn-next:hover { filter: brightness(1.08) !important; }
.ctm-auth-page .ctm-btn-back {
    padding: .75rem 1.5rem !important;
    background: transparent !important;
    color: rgba(216,227,251,.6) !important;
    border: 1px solid rgba(216,227,251,.15) !important;
    border-radius: 50px !important;
    font-family: 'Lexend', sans-serif !important;
    font-weight: 600 !important; font-size: .85rem !important;
    cursor: pointer !important;
    transition: border-color .2s, color .2s !important;
}
.ctm-auth-page .ctm-btn-back:hover {
    border-color: #bded4d !important; color: #bded4d !important;
}

/* Submit del registro */
.ctm-auth-page .ctm-btn-submit,
.ctm-auth-page button[type="submit"].ctm-btn-primary {
    width: 100% !important;
    padding: 1rem !important;
    background: linear-gradient(135deg,#bded4d,#a2d031) !important;
    color: #081425 !important;
    border: none !important; border-radius: 50px !important;
    font-family: 'Lexend', sans-serif !important;
    font-weight: 700 !important; font-size: 1rem !important;
    text-transform: uppercase !important; letter-spacing: .05em !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(189,237,77,.2) !important;
    transition: filter .2s !important;
}
.ctm-auth-page .ctm-btn-submit:hover { filter: brightness(1.1) !important; }

/* Steps indicator (clases existentes del registro) */
.ctm-auth-page .ctm-steps-indicator {
    display: flex; align-items: center; margin-bottom: 2rem;
}
.ctm-auth-page .ctm-step {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ctm-auth-page .ctm-step-number {
    width: 28px; height: 28px; border-radius: 50%;
    background: #152031;
    border: 2px solid rgba(216,227,251,.12);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Lexend', sans-serif; font-size: .75rem; font-weight: 700;
    color: rgba(216,227,251,.35); transition: all .2s;
}
.ctm-auth-page .ctm-step.active .ctm-step-number {
    background: #bded4d; border-color: #bded4d; color: #081425;
}
.ctm-auth-page .ctm-step.completed .ctm-step-number {
    background: rgba(189,237,77,.15); border-color: #bded4d; color: #bded4d;
}
.ctm-auth-page .ctm-step-label {
    font-size: .58rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: rgba(216,227,251,.3);
}
.ctm-auth-page .ctm-step.active .ctm-step-label { color: #bded4d; }
.ctm-auth-page .ctm-step-connector {
    flex: 1; height: 1px; background: rgba(216,227,251,.1);
    margin: 0 .5rem; margin-bottom: 1.1rem;
}

/* Campos de form */
.ctm-auth-page .ctm-field { margin-bottom: 1.1rem; }
.ctm-auth-page .ctm-field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.ctm-auth-page .ctm-step-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1rem; font-weight: 700;
    color: #d8e3fb; margin: 0 0 1.25rem;
    text-transform: uppercase; letter-spacing: -.01em;
}
.ctm-auth-page .ctm-step-nav {
    display: flex; gap: .75rem; margin-top: 1.5rem; justify-content: flex-end;
}
.ctm-auth-page .ctm-input-with-indicator { position: relative; }
.ctm-auth-page .ctm-field-indicator {
    position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
    font-size: .75rem; font-weight: 700;
}
.ctm-auth-page .ctm-password-wrapper { position: relative; }
.ctm-auth-page .ctm-toggle-password {
    position: absolute !important; right: .75rem !important; top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important; border: none !important;
    cursor: pointer !important; color: rgba(216,227,251,.4) !important;
    padding: 0 !important; font-size: 1.1rem !important; line-height: 1 !important;
}
.ctm-auth-page .ctm-toggle-password:hover { color: #bded4d !important; }

/* Foto de perfil */
.ctm-auth-page .ctm-photo-preview {
    background: #152031 !important;
    border: 2px dashed rgba(189,237,77,.3) !important;
    transition: border-color .2s !important;
}
.ctm-auth-page .ctm-photo-preview:hover { border-color: #bded4d !important; }

/* Mensajes de error/éxito del registro */
.ctm-auth-page .ctm-form-messages { margin-bottom: 1rem; }
.ctm-auth-page .ctm-form-messages.error {
    padding: .75rem 1rem; border-radius: 8px;
    background: rgba(227,6,19,.15); color: #ff6b6b;
    border-left: 3px solid #e30613; font-size: .85rem;
}
.ctm-auth-page .ctm-form-messages.success {
    padding: .75rem 1rem; border-radius: 8px;
    background: rgba(189,237,77,.1); color: #bded4d;
    border-left: 3px solid #bded4d; font-size: .85rem;
}
.ctm-auth-page .ctm-field-error { color: #ff6b6b; font-size: .75rem; display: block; margin-top: 3px; }
.ctm-auth-page .ctm-field-hint { color: rgba(216,227,251,.4); font-size: .72rem; margin-top: 3px; display: block; }
.ctm-auth-page .ctm-password-strength { margin-top: 4px; }

/* Panel derecho con scroll cuando el contenido es largo */
.ctm-auth-right-scroll {
    align-items: flex-start !important;
    overflow-y: auto !important;     /* scroll interno — el card define el max-height */
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
@media (max-width: 768px) {
    .ctm-auth-page .ctm-field-row { grid-template-columns: 1fr; }
}
