/* ================================
   MODAL RESET PASSWORD - BODY
================================ */

.reset-password-container {
    width: 100%;
    /* max-width: 460px; */
    margin: 0 auto;
    padding: 0 4px;
    color: #1f2937;
    font-family: inherit;
}

.reset-password-header {
    text-align: center;
    margin-bottom: 18px;
}

.reset-password-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
}

.reset-password-header p {
    max-width: 390px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.45;
    color: #4b5563;
}

/* ================================
   FORMULARIO
================================ */

.reset-password-form {
    /* width:90%; */
    /* background-color:red; */
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-top: 16px;
    justify-content: space-between;
}

.reset-password-form_izq{
    width:50%;
}
.reset-password-form_der{

     width:50%;
}

.reset-password-group {
    width: 100%;
    text-align: left;
}

.reset-password-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

/* Contenedor del input + ojo */
.reset-password-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.18s ease-in-out;
}

.reset-password-input-wrapper:focus-within {
    border-color: #2f324f;
    box-shadow: 0 0 0 3px rgba(47, 50, 79, 0.12);
}

/* Input */
.reset-password-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: none !important;
    outline: none !important;
    padding: 11px 12px;
    font-size: 14px;
    color: #111827;
    background: transparent;
}

.reset-password-input::placeholder {
    color: #9ca3af;
}

/* Botón ojo */
.reset-password-toggle {
    width: 44px;
    height: 42px;
    border: none !important;
    border-left: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease-in-out;
}

.reset-password-toggle:hover {
    background: #eef0f4 !important;
}

/* ================================
   REGLAS DE CONTRASEÑA
================================ */

.reset-password-rules {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.reset-password-rules p {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 800;
    color: #2f324f;
}

.reset-password-rules ul {
    margin: 0;
    padding-left: 18px;
    list-style-position: outside;
}

.reset-password-rules li {
    margin: 5px 0;
    font-size: 12.5px;
    line-height: 1.35;
    color: #4b5563;
}

/* Para cuando después validemos reglas */
.reset-password-rules li.rule-ok {
    color: #15803d;
    font-weight: 700;
}

.reset-password-rules li.rule-error {
    color: #b91c1c;
    font-weight: 700;
}

/* ================================
   BOTONES SWEETALERT RESET PASSWORD
================================ */

.swal-reset-password-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 24px !important;
}

/* Base para ambos botones */
.swal2-popup .btn-reset-password-confirm,
.swal2-popup .btn-reset-password-cancel,
.swal2-popup .swal2-confirm,
.swal2-popup .swal2-cancel {
    min-width: 110px !important;
    height: 42px !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.18s ease-in-out !important;
}

/* Botón aceptar */
.swal2-popup .btn-reset-password-confirm,
.swal2-popup .swal2-confirm {
    background: #2f324f !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(47, 50, 79, 0.28) !important;
}

/* Hover aceptar */
.swal2-popup .btn-reset-password-confirm:hover,
.swal2-popup .swal2-confirm:hover {
    background: #24273f !important;
    transform: translateY(-1px) !important;
}

/* Botón cancelar */
.swal2-popup .btn-reset-password-cancel,
.swal2-popup .swal2-cancel {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

/* Hover cancelar */
.swal2-popup .btn-reset-password-cancel:hover,
.swal2-popup .swal2-cancel:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
    transform: translateY(-1px) !important;
}

/* Quitar borde negro feo del focus */
.swal2-popup .btn-reset-password-confirm:focus,
.swal2-popup .btn-reset-password-cancel:focus,
.swal2-popup .swal2-confirm:focus,
.swal2-popup .swal2-cancel:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(47, 50, 79, 0.18) !important;
}


/* Estado OK */
.form-control_ok {
  display: block;
  width: 100%;
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  color: #1f2937;
  background-color: #eafff1;          /* verde muy suave */
  border: none;          /* verde intenso */
  border-radius: 0.5rem;              /* mÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡s redondeado */
  appearance: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: all 0.3s ease-in-out;
}

.form-control_ok:focus {
  outline: none;
  border-color: #22c55e;              /* verde un poco mÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡s fuerte */
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}

/* Estado ERROR */
.form-control_error {
  display: block;
  width: 100%;
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
     background-color: #ffecec;          /* rojo suave */
    border: none;          /* rojo fuerte */
    color:#950202;        /* verde intenso */
  border-radius: 0.5rem;              /* mÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡s redondeado */
  appearance: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: all 0.3s ease-in-out;
}

.form-control_error:focus {
  outline: none;
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,.25);
}

.swal-password-ok-popup{
    border-radius: 18px !important;
    padding: 22px !important;
    box-shadow: 0 14px 38px rgba(0,0,0,0.22) !important;
}

.swal-password-ok{
    font-family: Arial, sans-serif;
    text-align: center;
}

.swal-password-ok-msg{
    font-size: 15px;
    color: #374151;
    margin-bottom: 14px;
}

.swal-password-ok-card{
    background: #f4f6f8;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
}

.swal-password-ok-card p{
    margin: 7px 0;
    font-size: 14px;
    color: #1f2937;
}

.swal-password-ok-card strong{
    color: #2f324f;
}

.swal-password-ok-btn{
    background: linear-gradient(135deg, #2f324f, #1f2937) !important;
    color: white !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 9px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 8px !important;
}

.swal-password-ok-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(47,50,79,0.35);
}