:root{
  --bg: #080710;
  --glass: rgba(255,255,255,.10);
  --glass-2: rgba(255,255,255,.14);
  --text: #fff;
  --muted: #ccc;
  --btn: #ffffff;
  --btn-text: #000000;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --focus: 0 0 0 3px rgba(255,255,255,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background: var(--bg);
}

/* Layout */
.page{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  isolation: isolate;
}

/* Background shapes en blanco y negro */
.shape{
  position: absolute;
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  border-radius: 50%;
  filter: blur(2px);
  opacity: .9;
  z-index: -1;
}
.shape.shape-a{
  background: linear-gradient(135deg, #ffffff, #999999);
  top: -8%;
  left: -6%;
}
.shape.shape-b{
  background: linear-gradient(135deg, #000000, #666666);
  bottom: -10%;
  right: -8%;
}
@media (prefers-reduced-motion:no-preference){
  .shape-a{ animation: floatA 14s ease-in-out infinite; }
  .shape-b{ animation: floatB 16s ease-in-out infinite; }
  @keyframes floatA{ 50%{ transform: translate3d(12px, -10px, 0); } }
  @keyframes floatB{ 50%{ transform: translate3d(-10px, 14px, 0); } }
}

/* Card */
.card{
  width: 100%;
  max-width: 420px;
  background: color-mix(in srgb, #ffffff 12%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, #ffffff 18%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
}

.title{
  margin: 0 0 4px;
  font-weight: 600;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.15;
  text-align: center;
}
.subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  text-align: center;
  font-size: clamp(12px, 2.5vw, 14px);
}

/* Form */
form{
  display: grid;
  gap: 14px;
}

.field{
  display: grid;
  gap: 8px;
}
label{
  font-size: 14px;
  font-weight: 500;
}
.control{
  position: relative;
  display: flex;
  align-items: center;
}

/* Inputs */
input{
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--glass-2);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 10px;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder{ color: #e5e5e5; opacity: .7; }
input:focus-visible{
  outline: none;
  box-shadow: var(--focus);
  background: rgba(255,255,255,.12);
}

/* Submit button blanco/negro */
.actions{
  margin-top: 6px;
  display: grid;
  gap: 10px;
}
.btn{
  appearance: none;
  border: 2px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;     /* blanco */
  color: #000000;          /* negro */
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .3s ease, color .3s ease, transform .06s ease, box-shadow .2s ease;
  display: inline-block;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.btn:hover{
  background: #000000;     /* negro */
  color: #ffffff;          /* blanco */
}
.btn:active{
  transform: translateY(1px);
}
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.4);
}

.hint{
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Larger screens */
@media (min-width: 768px){
  .card{ padding: 32px 26px; }
}
