/* =========================
   CEVIMEP - AUTH (LOGIN)
========================= */

/* Quita márgenes del navegador y evita scroll raro */
html, body { margin: 0; padding: 0; height: 100%; }

.auth-ui, .auth-ui * { box-sizing: border-box; }

.auth-ui{
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #ffffff;
  color: #1f2937;

  /* Layout */
  display: flex;
  flex-direction: column;

  /* Evita scroll horizontal sí o sí */
  overflow-x: hidden;
}

/* Área del login:
   - ocupa todo el alto disponible
   - si la pantalla es pequeña, permite scroll vertical
   - deja espacio para el footer fijo
*/
.auth-ui .auth-page{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  padding-bottom: 86px; /* espacio para el footer fijo */

  overflow-y: auto;
}

/* Card */
.auth-ui .auth-card{
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 26px 24px;
  text-align: center;
}

/* Logo */
.auth-ui .auth-logo img{
  width: 130px;
  margin-bottom: 10px;
  height: auto;
}

/* Títulos */
.auth-ui .auth-title{
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #0b3c7a;
  letter-spacing: 1px;
}

.auth-ui .auth-subtitle{
  margin: 6px 0 22px;
  font-size: 14px;
  color: #6b7280;
}

/* Form */
.auth-ui .form-group{
  margin-bottom: 14px;
  text-align: left;
}

.auth-ui label{
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.auth-ui .input{
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  outline: none;
}

.auth-ui .input:focus{
  border-color: #1aa6a0;
}

/* Botón verde */
.auth-ui .btn{
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.auth-ui .btn-primary{
  background: #1aa6a0;
  color: #ffffff;
}

.auth-ui .btn-primary:hover{
  background: #168f8a;
}

/* Error */
.auth-ui .auth-alert{
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.auth-ui .auth-alert.error{
  background: #fee2e2;
  color: #991b1b;
}

/* Footer azul oscuro: FULL WIDTH REAL + FIXED sin causar scroll */
.auth-ui .auth-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  background: #0b3c7a;
  color: #ffffff;
  text-align: center;

  /* Más grande */
  padding: 22px 12px;
  font-size: 14px;
  font-weight: 700;

  /* Encima de todo */
  z-index: 999;
}
/* =========================
   EXTRAS UI (hover + toggle)
   ========================= */

/* Botón: hover suave + click */
.auth-ui .btn{
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, filter .18s ease;
}

.auth-ui .btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(26,166,160,.25);
}

.auth-ui .btn-primary:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(26,166,160,.18);
}

/* Campo contraseña con botón ojo */
.auth-ui .pass-wrap{
  position: relative;
}

.auth-ui .pass-toggle{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #0b3c7a;
  border-radius: 10px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: filter .15s ease, transform .08s ease;
}

.auth-ui .pass-toggle:hover{ filter: brightness(.98); }
.auth-ui .pass-toggle:active{ transform: translateY(-50%) scale(.98); }

/* Deja espacio para el botón ojo */
.auth-ui .pass-wrap .input{
  padding-right: 92px;
}

/* Checkbox row */
.auth-ui .check-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #374151;
}

.auth-ui .check-row label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
}
