/* Paleta calcada de lib/theme/app_colors.dart (misma que web-admin/styles.css),
   para que esta página se vea como la misma identidad de CGT. */
:root {
  --red: #de2821;
  --red-dark: #b31f19;
  --ink: #211818;
  --ink-soft: #4a4342;
  --paper: #ffffff;
  --bg: #f3f1ef;
  --line: #e8e3e1;
  --muted: #8a8180;
  --work: #2e7d32;
  --work-bg: #e8f5e9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hidden {
  display: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
}

.card img {
  width: 64px;
  margin-bottom: 10px;
}

.card h1 {
  font-size: 18px;
  margin: 0 0 4px;
}

.card p.subtitle {
  margin: 0 0 22px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.field {
  text-align: left;
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field .hint {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  color: var(--ink);
}

.field input:focus {
  outline: none;
  border-color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-option {
  margin: 0;
  cursor: pointer;
}

.profile-option span {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.profile-option input:checked + span {
  border-color: var(--red);
  background: #fdecea;
  color: var(--red-dark);
}

.profile-option input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

.btn-primary:disabled {
  opacity: 0.6;
}

#register-error {
  background: #fdecea;
  color: var(--red-dark);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 11px 13px;
  border-radius: 12px;
  margin: 0 0 14px;
  text-align: left;
}

#register-success {
  background: var(--work-bg);
  color: var(--work);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  padding: 16px 14px;
  border-radius: 12px;
  text-align: left;
}
