:root {
  --bg: #080710;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-2: rgba(255, 255, 255, 0.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: 380px;
  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);
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label {
  font-size: 14px;
  font-weight: 500;
}
.control {
  position: relative;
  display: flex;
  align-items: center;
}

/* Inputs */
input, select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--glass-2);
  background: #000;
  color: #fff
  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,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  background: rgba(255, 255, 255, 0.12);
}

/* Estilo personalizado para input tipo date */
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11zm0-13H5V6h14v1z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px 20px;
  padding-right: 40px;
}

/* Botón con loader */
.actions {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--btn);
  color: var(--btn-text);
  border: 2px solid var(--btn);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.06s ease, box-shadow 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.btn:hover {
  background: var(--btn-text);
  color: var(--btn);
}

.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .4);
}

/* Loader dentro del botón */
.btn .loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: var(--btn-text);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn.loading .btn-text {
  opacity: 0.6;
}
.btn.loading .loader {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* Responsive: padding más cómodo en desktop */
@media (min-width: 768px) {
  .card {
    padding: 32px 26px;
  }
}

