/* --- CONFIGURACIÓN DE COLORES PREMIUM (MODO CLARO + AZUL POTENTE) --- */
:root {
  --bank-light-bg: #f4f7fc;
  --bank-card-glass: rgba(255, 255, 255, 0.92);
  --bank-border: rgba(0, 47, 153, 0.08);
  --text-main: #0c111d;
  --text-muted: #475467;
  --bank-blue-intense: #002f99; /* Azul WSAC con máxima potencia y profundidad */
  --bank-blue-hover: #001f66; /* Variación para hover */
}

body {
  background-color: var(--bank-light-bg);
  /* FONDO DE ONDAS FLUIDAS */
  background-image:
    radial-gradient(
      ellipse 70% 40% at 30% -10%,
      rgba(219, 230, 255, 0.85) 0%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 60% 50% at 80% 110%,
      rgba(210, 226, 255, 0.7) 0%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 50% 30% at 100% 20%,
      rgba(228, 237, 255, 0.9) 0%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 80% 40% at 0% 80%,
      rgba(235, 242, 255, 0.95) 0%,
      transparent 100%
    );

  font-family:
    "Amazon Ember", "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow-x: hidden;
}

.login-wrapper {
  width: 100%;
  max-width: 410px;
  padding: 20px;
}

/* TARJETA DE LOGIN CON TAMAÑO AMPLIO ORIGINAL Y SOMBRA DE CABECERA DE AWS */
.login-card {
  background: var(--bank-card-glass);
  border: 1px solid var(--bank-border);
  border-radius: 12px;
  padding: 3rem 2.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;

  box-shadow:
    0 30px 60px -15px rgba(0, 47, 153, 0.07),
    0 15px 30px -10px rgba(165, 198, 255, 0.12),
    0 0 1px 1px rgba(0, 47, 153, 0.02);

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card:hover {
  border-color: rgba(0, 47, 153, 0.2);
  box-shadow:
    0 40px 70px -15px rgba(0, 47, 153, 0.1),
    0 20px 35px -10px rgba(165, 198, 255, 0.18);
}

/* Icono de nube en la esquina superior derecha */
.card-cloud-badge {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--bank-blue-intense);
  opacity: 0.65;
  font-size: 1.35rem;
  transition: opacity 0.2s ease;
}

.login-card:hover .card-cloud-badge {
  opacity: 1;
}

.brand-name {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.35rem;
  color: var(--bank-blue-intense);
}

.subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
}

/* --- ESTRUCTURA DE CAMPOS CON ETIQUETA SUPERIOR FIJA --- */
.form-group-custom {
  position: relative;
  margin-bottom: 1.35rem;
}

/* Nombre del campo arriba sobre el input */
.form-group-custom label.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Iconos reducidos e hipermodernos de líneas */
.input-wrapper i.input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 1.1rem; /* Ajustado ligeramente para balance visual */
  transition: color 0.2s ease;
  z-index: 4;
  pointer-events: none;
}

/* Inputs compactos */
.form-control-custom {
  width: 100%;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(0, 47, 153, 0.12);
  border-radius: 6px;
  padding: 10px 14px 10px 40px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Placeholder más pequeño y traslúcido en minúsculas */
.form-control-custom::placeholder {
  color: rgba(71, 84, 103, 0.4);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Efectos interactivos de enfoque */
.form-control-custom:focus {
  outline: none;
  border-color: var(--bank-blue-intense);
  box-shadow: 0 0 0 3px rgba(0, 47, 153, 0.07);
  background: #ffffff;
}

.form-control-custom:focus + i.input-icon,
.form-control-custom:focus ~ i.input-icon {
  color: var(--bank-blue-intense);
}

/* Botón Mostrar/Ocultar Contraseña */
.btn-show-pass {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  font-size: 1rem;
  transition:
    color 0.2s,
    transform 0.2s;
  z-index: 4;
}
.btn-show-pass:hover {
  color: var(--bank-blue-intense);
  transform: scale(1.05);
}

/* Botón Sólido con alineación para icono interno */
.btn-submit-premium {
  background: var(--bank-blue-intense);
  color: #ffffff;
  border: 1px solid var(--bank-blue-intense);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 100%;
  margin-top: 0.4rem;
  box-shadow: 0 4px 10px rgba(0, 47, 153, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit-premium i.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  line-height: 1;
}

.btn-submit-premium:hover:not(:disabled) {
  background: var(--bank-blue-hover);
  border-color: var(--bank-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 47, 153, 0.22);
}

.btn-submit-premium:hover:not(:disabled) i.btn-icon {
  transform: translateX(2px);
}

.btn-submit-premium:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit-premium:disabled {
  background: #e2e8f0;
  border-color: transparent;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  font-weight: 500;
}
