:root {
  --brand: #00b894;
  --brand-dark: #019875;
  --ink: #12263a;
  --muted: #6b7c8f;
  --line: #e3e9f0;
  --bg: #f4f7fb;
  --white: #ffffff;
  --danger: #e74c3c;
  --shadow: 0 18px 45px rgba(18, 38, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page--crear {
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 184, 148, 0.18), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(9, 132, 227, 0.18), transparent 42%),
    var(--bg);
}

.page--crear .layout__content {
  align-items: center;
  padding: 40px 24px;
}

.registro {
  width: 100%;
  max-width: 720px;
  background: var(--white);
  border-radius: 22px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.registro__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.registro__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.registro__title {
  margin: 22px 0 6px;
  font-size: 28px;
  letter-spacing: -0.4px;
}

.registro__subtitle {
  margin: 0 0 26px;
  font-size: 15px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.field--wide {
  grid-column: 1 / -1;
}

.conductor {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}

.conductor[hidden] {
  display: none;
}

.conductor__title {
  margin: 0 0 18px;
  font-size: 17px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.field__input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 13px 15px;
  font-size: 15px;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.15);
}

.rol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  background: #fbfcfe;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}

.rol__option {
  position: relative;
  cursor: pointer;
}

.rol__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rol__btn {
  display: block;
  padding: 11px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 9px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.rol__option input:checked + .rol__btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 6px 16px rgba(0, 184, 148, 0.3);
}

.rol__option input:focus-visible + .rol__btn {
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.15);
}

.registro__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  padding: 13px 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 24px rgba(0, 184, 148, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 184, 148, 0.45);
}

.btn--ghost {
  color: var(--muted);
  background: var(--bg);
}

.btn--ghost:hover {
  color: var(--ink);
}

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.alert--ok {
  color: var(--brand-dark);
  background: rgba(0, 184, 148, 0.14);
}

.alert--error {
  color: var(--danger);
  background: rgba(231, 76, 60, 0.12);
}

@media (max-width: 640px) {
  .registro {
    padding: 28px 22px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
