/* El Faro — Web App Styles */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f172a;
  --card: #1e293b;
  --accent: #eab308;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
  --input-bg: #0f172a;
  --green: #22c55e;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.container {
  width: 100%;
  max-width: 520px;
}

/* ── Header ── */
header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.subtitle {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ── Steps ── */
.step { display: none; }
.step.active { display: block; }

#step-done { text-align: center; }

.done-icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* ── Forms ── */
form {
  background: var(--card);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--border);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}

label:first-child { margin-top: 0; }

input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}

textarea { resize: vertical; min-height: 56px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { margin-top: 1rem; }
.field-row .field { margin-top: 0; }

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* ── Toggle Switches ── */
.switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  user-select: none;
}

.switch input { display: none; }

.slider {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.switch input:checked + .slider {
  background: var(--accent);
}

.switch input:checked + .slider::after {
  transform: translateX(18px);
}

/* ── Buttons ── */
button {
  width: 100%;
  padding: 0.85rem;
  margin-top: 1.5rem;
  background: var(--accent);
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

button:hover { opacity: 0.9; }
button:active { opacity: 0.8; }

/* ── Footer ── */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.small {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

p { margin-top: 0.5rem; line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  body { padding: 1rem; }
}
