@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body, html {
  width: 100%;
  height: 100vh;
  background-color: #f3f5f9;
  font-family: "Plus Jakarta Sans", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenedor Principal */
.card-container {
  width: 850px;
  min-height: 540px;
  background-color: #ffffff;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

/* Panel Izquierdo (Banner Azul) */
.card-banner {
  /*width: 42%;*/
  background: linear-gradient(180deg, #1555df 0%, #082d80 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 40px 25px;
  text-align: center;
  color: #ffffff;
  position: relative;
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  margin: auto;
}

.banner-img {
  width: 300px;
  height: auto;
  margin-bottom: 15px;
  object-fit: contain;
}

.banner-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.banner-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* Panel Derecho (Formulario) */
.card-form {
  width: 58%;
  padding: 45px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
}

/* Encabezado del Formulario */
.form-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 14px;
  color: #6b7280;
}

/* Inputs y Wrappers */
.form-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 14px;
  height: 46px;
  transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #2563eb;
  background-color: #ffffff;
}

.input-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
}

.input-wrapper input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 10px;
  font-size: 14px;
  color: #1e293b;
  font-family: inherit;
  margin-left: 10px;
  margin-right: 10px;
}



#username{

  margin-right: 28px;
}

.input-wrapper input::placeholder {
  color: #94a3b8;
}

.eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Link contraseña */
.forgot-password {
  text-align: right;
}

.forgot-password a {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Botón Principal */
.btn-submit {
  width: 100%;
  height: 48px;
  background-color: #ff5263;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.btn-submit:hover {
  background-color: #f04354;
}

/* Footer Formulario */
.form-footer {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 15px;
}

.form-footer a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

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

/* Estilos Responsivos para Móvil */
@media (max-width: 720px) {
    body {

        padding: 0px 0px;
        align-items: flex-start;

    }
    /* Permitir que el contenedor crezca y se ajuste en altura */
    .card-container {
        width: 100%;
        flex-direction: column; /* Cambia de fila a columna */
        border-radius: 15px;
    }
    /* Teléfonos (hasta 767px aprox.) */
    @media (max-width: 767px) {
        .card-container {
            border-radius: 0;
        }
    }

    /* Ajustar el Banner Azul */
    .card-banner {
        width: 100%;
        padding: 30px 20px;
        order: -1; /* Mantiene el banner arriba */
    }

    .banner-img {
        width: 200px; /* Mascota más pequeña en móvil */
        margin-bottom: 10px;
    }

    .banner-content {
        gap: 8px;
    }

    .banner-content h2 {
        font-size: 20px;
    }

    /* Ajustar el Formulario */
    .card-form {
        width: 100%;
        padding: 30px 25px;
    }

    .form-header h1 {
        font-size: 22px;
    }

    .btn-submit {
        height: 44px;
        font-size: 14px;
    }
}


.main-wrapper {
    display: flex;
    width: 1050px;
    height: 750px;
    background: white;
    border-radius: 15px;
    box-shadow: 7px 7px 7px 7px rgba(0, 0, 0, 0.116);
}

/* Panel Izquierdo */
.left-panel {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
    text-align: center;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}
.left-panel img {
    width: 380px;
    height: auto;
    margin-bottom: 0px;
}

.left-panel h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.left-panel p { font-size: 15px; opacity: 0.9; margin: 0;  }

/* Panel Derecho */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    overflow-y: auto;
    background: white;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}
.form-header h2 { font-size: 26px; font-weight: 800; color: #0f172a; margin: 0 0 5px 0; }
.form-header p { font-size: 14px; color: #64748b; margin-bottom: 25px; }

/* Barra de Progreso */
.progress-container { margin-bottom: 30px; }
.progress-bar-bg { width: 100%; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.progress-bar-fill { height: 100%; background: #2563eb; width: 50%; transition: width 0.3s ease; }
.progress-steps { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #64748b; }
.progress-steps .active { color: #1d4ed8; }

/* Campos */
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: #1e293b; font-size: 13px; }
.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: all 0.2s;
}
.form-input:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Botones */
.btn-primary {
    background: #ff4757;
    border: none;
    color: white;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
}
.btn-primary:hover { background: #ff6b81; }

.btn-secondary {
    background: white;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.btn-secondary:hover { background: #f8fafc; }

.actions { display: flex; gap: 15px; margin-top: 10px; }
.step-section { display: none; }
.step-section.active { display: block; }

.footer-link { text-align: center; margin-top: 25px; font-size: 14px; color: #64748b; }
.footer-link a { color: #2563eb; text-decoration: none; font-weight: 600; }
.footer-link a:hover { text-decoration: underline; }

.invalid-feedback { color: #ef4444; font-size: 12px; margin-top: 5px; display: block; }

/* ==========================================
   ESTILOS PARA TABLET (721px a 1024px)
   ========================================== */
@media (min-width: 721px) and (max-width: 1024px) {
    .main-wrapper {
        width: 92%;
        height: auto;
        min-height: 650px;
    }

    .left-panel {
        flex: 0 0 38%;
        padding: 30px 15px;
    }

    .left-panel img {
        width: 260px; /* Reducido para que luzca bien en tablet */
    }

    .right-panel {
        padding: 40px;
    }
}


/* Estilos Responsivos para Móvil (max-width: 720px) */
@media (max-width: 720px) {
    body {

        padding: 0px 0px;
        align-items: flex-start;

    }

    .main-wrapper {
        width: 100%;
        height: auto;
        flex-direction: column;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }

    /* Panel Izquierdo (Mascota arriba) */
    .left-panel {
        flex: none;
        width: 100%;
        padding: 25px 20px;
        border-radius: 0px 0px 0 0;
    }

    .left-panel img {
        width: 180px; /* Tamaño adaptado para móviles */
        margin-bottom: 5px;
    }

    .left-panel h2 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .left-panel p {
        font-size: 13px;
    }

    /* Panel Derecho (Formulario abajo) */
    .right-panel {
        width: 100%;
        padding: 25px 20px;
        border-radius: 0 0 12px 12px;
        overflow-y: visible;
    }

    .form-header h2 {
        font-size: 22px;
    }

    /* Apilar campos en móvil para evitar que se compriman demasiado */
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
    }
}



/*otros estilos*/
.alerta_danger{
  margin-top: 15px;
  background-color:
  #fee2e2; border:
  1px solid #fca5a5;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.olvidaste_tu_contracena{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.olvidaste_tu_contracena label{
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #4b5563;
}

.terminos_y_condiciones{
  margin-bottom: 20px;
  font-size: 13px;
  color: #64748b;
}

.terminos_y_condiciones label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}


.color_tc{
  color:#2563eb;
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL (CARD)
   ========================================================================== */
.recuperacion_card-container {
  width: 100%;
  max-width: 980px;
  min-height: 600px;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  overflow: hidden;
  margin: auto;
}

/* ==========================================================================
   PANEL IZQUIERDO (AZUL / ILUSTRACIÓN)
   ========================================================================== */
.recuperacion_left-panel {
  width: 380px;
  background: linear-gradient(180deg, #0238a8 0%, #001f66 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 32px;
  overflow: visible;
  flex-shrink: 0;
}

.recuperacion_bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.recuperacion_circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -80px;
}

.recuperacion_circle-2 {
  width: 250px;
  height: 250px;
  bottom: -90px;
  left: -90px;
}

.recuperacion_star {
  position: absolute;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  pointer-events: none;
}
.recuperacion_star-1 { top: 120px; left: 100px; font-size: 10px; }
.recuperacion_star-2 { top: 160px; right: 50px; font-size: 14px; }
.recuperacion_star-3 { top: 280px; left: 70px; font-size: 8px; }

.recuperacion_grid-dots {
  position: absolute;
  top: 170px;
  left: 28px;
  width: 24px;
  height: 48px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
}

.recuperacion_logo {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  z-index: 2;
}

.recuperacion_logo-k {
  color: #ff3b30;
}

.recuperacion_illustration-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  z-index: 5;
  height: 80px;
}

.recuperacion_mascot-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
  position: absolute;
  bottom: 80px;
  right: -66px;
  mix-blend-mode: multiply;
}

.recuperacion_mascot-shadow {
  width: 180px;
  height: 18px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  margin-top: -10px;
  margin-left: 90px;
  filter: blur(4px);
}

/* ==========================================================================
   PANEL DERECHO (FORMULARIO Y CONTENIDO)
   ========================================================================== */
.recuperacion_right-panel {
  flex: 1;
  background-color: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.recuperacion_form-box {
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  padding: 44px 36px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.recuperacion_form-title {
  font-size: 28px;
  font-weight: 800;
  color: #0b132a;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.recuperacion_form-subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 24px;
}

/* Alertas */
.recuperacion_alert-custom-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recuperacion_alert-custom-success i {
  color: #10b981;
  flex-shrink: 0;
}

/* Inputs y Formulario */
.recuperacion_reset-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recuperacion_input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recuperacion_form-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.recuperacion_input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.recuperacion_field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.recuperacion_form-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.recuperacion_form-input:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.recuperacion_form-input:focus + .recuperacion_field-icon,
.recuperacion_input-icon-wrapper:focus-within .recuperacion_field-icon {
  color: #2563eb;
}

.recuperacion_form-input.recuperacion_is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.recuperacion_invalid-feedback {
  font-size: 12px;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* Botón principal */
.recuperacion_btn-submit {
  width: 100%;
  height: 48px;
  background-color: #ff3b30;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.recuperacion_btn-submit:hover {
  background-color: #e03126;
}

.recuperacion_btn-submit:active {
  transform: scale(0.99);
}

.recuperacion_btn-submit:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

.recuperacion_btn-icon {
  width: 18px;
  height: 18px;
}

/* Separador */
.recuperacion_divider {
  position: relative;
  margin: 28px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recuperacion_divider-line {
  width: 100%;
  height: 1px;
  background-color: #e2e8f0;
}

.recuperacion_divider-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  background-color: #ffffff;
}

/* Enlace Volver al inicio de sesión */
.recuperacion_back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.recuperacion_back-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.recuperacion_back-icon {
  width: 16px;
  height: 16px;
}

.recuperacion_spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 768px) {
  .recuperacion_left-panel {
    display: none;
  }

  .recuperacion_card-container {
    max-width: 440px;
    min-height: auto;
    box-shadow: none;
    background-color: transparent;
  }

  .recuperacion_right-panel {
    padding: 0;
    background-color: transparent;
  }

  .recuperacion_form-box {
    padding: 28px 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  }
}

