:root{
  /* 🎨 Mantengo tu paleta base (para usarla en cards y detalles) */
  --bg-left:  #2f6fd6;
  --bg-mid:   #4fa3e3;
  --bg-right: #8fd3f4;

  /* ✅ NUEVO: “color del sidebar” (similar al que usas en el sistema) */
  --sidebar-bg: #c7dceb;      /* base */
  --sidebar-bg-2:#b7d0e4;     /* un poquito más fuerte */

  /* ✅ Fondo blanco */
  --page-bg: #ffffff;

  /* ✅ Texto oscuro para que se vea bien en fondos claros */
  --text-dark: #0b2d4f;
  --muted-dark: rgba(11,45,79,.70);

  /* Glass adaptado a fondo claro (MISMA estructura) */
  --glass-1: rgba(199, 220, 235, .70);
  --glass-2: rgba(183, 208, 228, .55);
  --line: rgba(11,45,79,.25);

  /* ✅ Ajuste de “texto” para inputs y títulos */
  --text: rgba(11,45,79,.92);
  --muted: rgba(11,45,79,.70);

  /* hover/sombra */
  --hover: rgba(11,45,79,.06);
}

*{
  box-sizing:border-box;
  font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body{
  margin:0;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;

  /* ✅ igual que tu diseño */
  padding: clamp(18px, 4vw, 60px);

  /* ✅ Fondo BLANCO (como pediste) */
  background: var(--page-bg);
  overflow:hidden;
}

/* ✅ quitamos el overlay azul del fondo */
body::before{
  content:"";
  position:fixed;
  inset:-120px;
  background: none;
  filter: none;
  pointer-events:none;
}

/* ✅ Card con “color del sidebar” (misma medida/estructura) */
.card{
  width:min(540px, 92vw);
  padding:44px 46px 36px;
  border-radius:40px;

  background: linear-gradient(135deg, var(--glass-1), var(--glass-2));
  border: 1px solid rgba(11,45,79,.12);
  backdrop-filter: blur(18px);
  box-shadow:
    0 30px 70px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.55);

  transform: translateY(-10px);
}

/* ✅ Título en oscuro (MISMO tamaño) */
.title{
  text-align:center;
  color: var(--text-dark);
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 34px;
}

/* ===== Campos ===== */
.field{
  display:flex;
  align-items:center;
  gap:14px;
  margin:18px 0;
  padding-bottom:10px;
  border-bottom:2px solid var(--line);
}

/* ✅ Iconos más visibles en oscuro (MISMO tamaño) */
.field i{
  color: rgba(11,45,79,.85);
  width:24px;
  text-align:center;
  font-size:18px;
}

/* ✅ Inputs en oscuro (MISMO tamaño) */
.control{
  width:100%;
  background:transparent;
  border:none;
  outline:none;
  color: var(--text);
  font-size:18px;
  padding:10px 2px;
}

.control::placeholder{
  color: rgba(11,45,79,.55);
}

/* ===== Select personalizado ===== */
.custom-select{ position:relative; width:100%; user-select:none; }

/* ✅ texto del select */
.select-selected{
  padding:10px 32px 10px 2px;
  cursor:pointer;
  font-size:18px;
  color: rgba(11,45,79,.65);
  position: relative;
}

.select-selected.has-value{
  color: var(--text);
}

/* ✅ flecha en oscuro */
.select-selected::after{
  content:"\f078";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  color: rgba(11,45,79,.80);
  transition:.15s;
}

.custom-select.open .select-selected::after{
  transform:translateY(-50%) rotate(180deg);
}

/* ✅ Dropdown del select: más “alto” (más fuerte) pero elegante */
.select-items{
  position:absolute;
  top:calc(100% + 14px);
  left:0;
  right:0;

  /* 🔥 tonalidad más alta (más contrastada) */
  background: linear-gradient(
    135deg,
    rgba(170, 205, 228, 0.98),
    rgba(150, 190, 220, 0.96)
  );

  backdrop-filter: blur(18px);
  border-radius:16px;
  overflow:hidden;
  display:none;
  box-shadow:0 22px 44px rgba(0,0,0,.22);
  z-index:50;

  max-height: 240px;
  overflow-y: auto;

  border: 1px solid rgba(11,45,79,.12);
}

.custom-select.open .select-items{
  display:block;
  animation:fade .15s ease;
}

@keyframes fade{
  from{opacity:0; transform:translateY(-6px);}
  to{opacity:1; transform:none;}
}

/* ✅ opciones */
.opt{
  padding:14px 16px;
  cursor:pointer;
  color: var(--text-dark);
  font-weight:500;
  display:flex;
  justify-content:space-between;
  gap: 12px;
}

.opt:hover{
  background: rgba(255,255,255,.55);
}

.opt.disabled{
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ✅ tag con buen contraste */
.tag{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(11,45,79,.10);
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  white-space: nowrap;
  color: rgba(11,45,79,.85);
}

/* ✅ Botón igual en tamaño, solo ajusto contraste */
.btn{
  width:100%;
  margin-top:26px;
  padding:16px;
  border:none;
  border-radius:18px;
  font-weight:700;
  letter-spacing:2px;
  color: var(--text);

  background: linear-gradient(
    90deg,
    var(--btn-1),
    var(--btn-2),
    var(--btn-3)
  );

  /* 🔥 sombreado más marcado */
  box-shadow:
    0 18px 36px rgba(47,111,214,.35),
    0 8px 18px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.65);

  cursor:pointer;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    filter .12s ease;
}

/* Hover: se “levanta” */
.btn:hover{
  transform: translateY(-2px);
  box-shadow:
    0 22px 44px rgba(47,111,214,.45),
    0 12px 24px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.75);
}

/* Active: vuelve a bajar */
.btn:active{
  transform: translateY(0);
  box-shadow:
    0 12px 24px rgba(47,111,214,.30),
    0 6px 14px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.55);
}


/* ✅ hint en oscuro suave */
.hint{
  margin-top:14px;
  text-align:center;
  font-size:13px;
  color: var(--muted);
}

/* =========================
   ✅ RESPONSIVE (igual que el tuyo)
   ========================= */
@media (max-width: 768px){
  .card{
    padding: 36px 34px 28px;
    border-radius: 34px;
    transform: translateY(-6px);
  }
  .title{
    font-size: 36px;
    margin-bottom: 26px;
  }
  .control, .select-selected{
    font-size: 16px;
  }
  .field{
    margin: 16px 0;
  }
  .btn{
    padding: 15px;
    border-radius: 16px;
  }
}

@media (max-width: 480px){
  body{
    padding: 18px;
  }
  .card{
    width: 100%;
    padding: 28px 20px 22px;
    border-radius: 28px;
    transform: none;
  }
  .title{
    font-size: 30px;
    margin-bottom: 20px;
  }
  .field{
    gap: 12px;
    margin: 14px 0;
    padding-bottom: 8px;
  }
  .field i{
    font-size: 16px;
    width: 22px;
  }
  .control, .select-selected{
    font-size: 15px;
    padding: 9px 2px;
  }
  .select-items{
    top: calc(100% + 10px);
    border-radius: 14px;
    max-height: 210px;
  }
  .opt{
    padding: 12px 14px;
  }
  .btn{
    margin-top: 20px;
    padding: 14px;
    letter-spacing: 1.5px;
  }
  .hint{
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce){
  .custom-select.open .select-items{ animation:none; }
}
