/* ==========================================================================
   WMAS v2 - Institutional Authentication & Administration Forms Stylesheet
   Matches exact institutional brand design system (Login, Recovery, Role Selection)
   ========================================================================== */

body {
  font-family: var(--wmas-font-family);
  color: var(--wmas-color-letra-autenticacion, #ED6504);
  background-color: var(--wmas-color-fondo, #ffffff) !important;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Header Navbar Banner */
.encabezado {
  background-color: var(--wmas-color-fondo-encabezado, #ffffff) !important;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 12px 1.5rem;
}

/* Main Container Layout */
.login_container {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Container (.account-wall) */
.account-wall {
  margin: 30px auto;
  padding: 40px 30px 30px 30px;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-wall:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* Form Titles (Autenticación, Selección de ROL, etc.) */
h4,
.account-wall h4 {
  color: var(--wmas-color-letra-autenticacion, #ED6504) !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  font-size: 1.35rem;
  text-align: center;
}

/* User Avatar Silhouette Circle */
.avatar-circle,
.profile-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #e0e0e0;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  border: none;
}

.avatar-circle i {
  font-size: 55px;
  color: #b4b4b4;
}

/* Form Signin Controls */
.form-signin {
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
}

.input-group-login {
  position: relative;
  margin-bottom: 12px;
}

.form-signin .form-control,
.form-signin select.form-control {
  position: relative;
  font-size: 15px;
  height: 44px;
  padding: 10px 15px 10px 15px;
  box-sizing: border-box;
  border: 1px solid var(--wmas-color-relleno-autenticacion, #FDB078);
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: var(--wmas-color-relleno-autenticacion, #FDB078) !important;
  color: #ffffff !important;
  font-weight: 500;
}

.form-signin .input-with-icon {
  padding-left: 45px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  z-index: 3;
  transition: all 0.3s ease;
  pointer-events: none;
}

.input-group-login:focus-within .input-icon {
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.form-signin .form-control::placeholder {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
}

.form-signin .form-control:focus,
.form-signin select.form-control:focus {
  z-index: 2;
  border-color: var(--wmas-color-letra-autenticacion, #ED6504);
  background-color: var(--wmas-color-relleno-autenticacion, #FDB078) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(237, 101, 4, 0.25);
  outline: none;
}

/* Fix Autofill Chrome/Edge Background and Text */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px var(--wmas-color-relleno-autenticacion, #FDB078) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Option elements in Select dropdown */
.form-signin select.form-control option {
  background-color: #ffffff;
  color: #333333;
}

/* Institutional Auth Button (.botonAuth) */
.botonAuth {
  font-family: var(--wmas-font-family);
  transition: all 0.2s ease;
  background: #ffffff !important;
  color: var(--wmas-color-letra-autenticacion, #ED6504) !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-top: 15px;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 15px;
}

.botonAuth:hover {
  transform: translateY(-1px);
  background: #ffffff !important;
  color: var(--wmas-accent-hover, #d55700) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-color: #d0d0d0;
}

.botonAuth:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Links (Recuperar Contraseña, Cancelar, etc.) */
.sub_menu,
.new-account,
a.sub_menu {
  color: var(--wmas-color-letra-enlaces, #009AB2) !important;
  display: block;
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sub_menu:hover,
.new-account:hover,
a.sub_menu:hover {
  color: var(--wmas-primary-hover, #007a8c) !important;
  text-decoration: underline;
}

/* Footer Styling */
.footer {
  margin-top: auto;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--wmas-color-letra-autenticacion, #ED6504);
  background-color: #ffffff;
  padding: 15px 0;
  border-top: 1px solid #f0f0f0;
}

.footer span,
.footer b {
  color: var(--wmas-color-letra-autenticacion, #ED6504) !important;
  font-weight: 600;
  font-size: 11px;
}