:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --accent: #2b8aef;
  --muted: #6b7280;
  --text: #0f172a;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --container-width: 900px;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Contenedor general */
.main-container {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.registro-container {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: var(--container-width);
  width: 100%;
}

/* Título */
h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--accent);
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

/* Formulario en dos columnas */
form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: var(--muted);
}

input,
select {
  margin-top: 0.4rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #e2e2e8;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 138, 239, 0.15);
}

/* Sección de botones */
.form-actions {
  grid-column: 1 / -1;
  /* Ocupa ambas columnas */
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: #1e6bd8;
}

.btn.outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn.outline:hover {
  background: var(--accent);
  color: #fff;
}

/* Mensaje de confirmación */
.form-msg {
  color: green;
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
}

/* Responsivo */
@media (max-width: 800px) {
  form {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  h2 {
    font-size: 1.6rem;
  }
}