:root {
  --azul: #0f3d5e;
  --azul-profundo: #092b43;
  --azul-claro: #eaf3f8;
  --dorado: #c89b2c;
  --dorado-texto: #92701b;
  --texto: #172033;
  --texto-suave: #5b6678;
  --borde: #d9e1e8;
  --fondo: #f3f6f8;
  --blanco: #ffffff;
  --error: #9f2f2f;
  --exito: #246b45;
  --radio: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--texto);
  background: var(--fondo);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 10%, rgba(200, 155, 44, .12), transparent 24rem),
    linear-gradient(145deg, #edf3f6 0%, #f8fafb 52%, #edf2f4 100%);
}

button, input { font: inherit; }

.pagina-cuenta {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 40px 24px;
}

.panel-cuenta {
  width: 100%;
  max-width: 500px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 61, 94, .12);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: 0 24px 70px rgba(9, 43, 67, .13);
}

.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 18px 30px;
  color: var(--blanco);
  background: linear-gradient(115deg, var(--azul-profundo), var(--azul));
  font-size: .95rem;
  font-weight: 750;
  letter-spacing: .015em;
}

.marca__acento {
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: var(--dorado);
}

.panel-cuenta__contenido { min-width: 0; padding: 34px 36px 30px; }

.panel-cuenta__pie {
  padding: 16px 30px;
  border-top: 1px solid var(--borde);
  color: var(--texto-suave);
  background: #fbfcfd;
  font-size: .79rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--dorado-texto);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--azul-profundo);
  font-size: clamp(1.72rem, 4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.introduccion {
  margin: 14px 0 25px;
  color: var(--texto-suave);
  font-size: .98rem;
  line-height: 1.6;
}

.formulario { display: grid; min-width: 0; gap: 18px; margin-top: 25px; }

.campo { display: grid; min-width: 0; gap: 8px; }

.campo-password { position: relative; min-width: 0; }

.campo label { color: var(--texto); font-size: .91rem; font-weight: 720; }

.campo input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #bfcbd5;
  border-radius: 10px;
  color: var(--texto);
  background: var(--blanco);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.campo input:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(15, 61, 94, .12);
}

.campo-password input { padding-right: 96px; }

.control-password {
  position: absolute;
  top: 3px;
  right: 4px;
  min-width: 82px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--azul);
  background: var(--azul-claro);
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}

.control-password:hover { color: var(--blanco); background: var(--azul); }
.control-password:focus-visible { outline: 3px solid rgba(146, 112, 27, .55); outline-offset: 2px; }

.ayuda { margin: 0; color: var(--texto-suave); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  color: var(--blanco);
  background: var(--azul);
  box-shadow: 0 8px 20px rgba(15, 61, 94, .18);
  font-weight: 780;
  cursor: pointer;
  white-space: normal;
  text-decoration: none;
}

.boton:hover { background: var(--azul-profundo); }
.boton:focus-visible { outline: 3px solid rgba(200, 155, 44, .55); outline-offset: 3px; }
.boton--secundario { color: var(--azul); background: var(--azul-claro); box-shadow: none; }
.boton--secundario:hover { color: var(--blanco); background: var(--azul); }

.acciones-secundarias {
  display: flex;
  justify-content: center;
  margin-top: 21px;
  font-size: .9rem;
}

.acciones-secundarias a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
}

a { color: var(--azul); font-weight: 700; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid rgba(146, 112, 27, .55); outline-offset: 3px; }

.mensaje {
  margin: 20px 0 0;
  padding: 13px 15px;
  border-left: 4px solid var(--azul);
  border-radius: 8px;
  background: var(--azul-claro);
  font-size: .9rem;
  line-height: 1.5;
}

.mensaje--error { border-color: var(--error); color: #6f2020; background: #fff2f2; }
.mensaje--exito { border-color: var(--exito); color: #174d31; background: #eef9f3; }

.estado-icono {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 19px;
  border-radius: 50%;
  color: var(--azul);
  background: var(--azul-claro);
  font-size: 1.45rem;
  font-weight: 850;
}

.lista-segura { margin: 20px 0 0; padding-left: 21px; color: var(--texto-suave); font-size: .88rem; line-height: 1.65; }
.oculto { display: none !important; }

@media (max-width: 520px) {
  .pagina-cuenta { align-items: start; padding: 16px 12px; }
  .panel-cuenta { border-radius: 14px; }
  .marca { min-height: 64px; padding: 15px 20px; font-size: .88rem; }
  .panel-cuenta__contenido { padding: 27px 22px 25px; }
  .panel-cuenta__pie { padding: 14px 18px; }
  .introduccion { margin-bottom: 21px; }
  .formulario { gap: 16px; }
  .campo input, .boton { min-height: 50px; }
}

@media (max-width: 370px) {
  .panel-cuenta__contenido { padding-inline: 18px; }
  .marca { padding-inline: 18px; }
}
