:root{
  --bg:#f6f5fb;
  --card-bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --primary:#3f4f8c;
  --primary-press:#324171;
  --error:#d32f2f;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Centrar tarjeta */
.page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.card{
  width:100%;
  max-width:420px;
  background:var(--card-bg);
  border-radius:18px;
  box-shadow:0 20px 45px rgba(15,23,42,.12);
  padding:26px 24px 20px;
}

.card__title{
  margin:0 0 4px;
  font-size:24px;
  font-weight:800;
}
.card__subtitle{
  margin:0 0 18px;
  font-size:13px;
  color:var(--muted);
}

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.field label{
  font-size:13px;
  font-weight:600;
}
.field input{
  height:42px;
  border-radius:10px;
  border:1.4px solid var(--border);
  padding:0 12px;
  font-size:14px;
  outline:none;
  background:#fdfdff;
}
.field input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(63,79,140,.12);
}
.field__error{
  min-height:14px;
  font-size:11px;
  color:var(--error);
}

.dropdown {
  position: relative;
}

.dropdown__toggle {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1.3px solid #e5e7eb;
  padding: 0 10px;
  background: #fdfdff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  cursor: pointer;
}

.dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
  list-style: none;
  padding: 4px 0;
  max-height: 180px;
  overflow-y: auto;
  display: none;              /* oculto por defecto */
  z-index: 10;
}

.dropdown__menu.show {
  display: block;             /* se muestra cuando JS agrega .show */
}

.dropdown__menu li {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}

.dropdown__menu li:hover {
  background: #f3f4ff;
}

.btn-primary{
  margin-top:6px;
  height:44px;
  border:none;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(15,23,42,.18);
}
.btn-primary:active{
  background:var(--primary-press);
  transform:translateY(1px);
}

.card__footnote{
  margin-top:14px;
  font-size:12px;
  text-align:center;
  color:var(--muted);
}
.card__footnote a{
  color:var(--primary);
  font-weight:600;
  text-decoration:none;
}
.card__footnote a:hover{
  text-decoration:underline;
}

/* Responsive */
@media (max-width:480px){
  .card{
    padding-inline:18px;
  }
}

.select-role {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d1d1d1;
    background: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.25s ease;
    appearance: none;
}

.select-role:focus {
    border-color: #3f4f8c;
    box-shadow: 0 0 0 3px rgba(63, 79, 140, 0.2);
}

.select-role:hover {
    border-color: #3f4f8c;
}
