/* =============================================================================
 * Super Voluntários — Estilos compartilhados (cadastro, login, área do voluntário)
 * Importado via <link rel="stylesheet" href="/assets/sv.css">
 * ============================================================================= */

:root {
  --brand: #00a0a0;
  --brand-dark: #007878;
  --brand-soft: #e6f6f6;
  --accent: #f08c14;
  --accent-warm: #f03c00;
  --navy: #003c64;
  --red: #dc1414;
  --bg: #f7faf9;
  --card: #ffffff;
  --text: #0f2a2a;
  --muted: #5a7373;
  --border: #d8e5e3;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 60, 60, 0.07);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.container.narrow { max-width: 480px; }
.container.wide   { max-width: 1080px; }

header.page-header {
  text-align: center;
  margin-bottom: 28px;
}
.logo { display: inline-block; margin-bottom: 8px; }
.logo img { height: 56px; width: auto; display: block; margin: 0 auto; }
.tagline {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
h1 {
  font-size: 26px;
  margin: 8px 0 6px;
  line-height: 1.25;
  color: var(--navy);
}
.subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.card h2 {
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--navy);
}
.card h2 .sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.field { margin-bottom: 18px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}
.hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="url"], input[type="date"], input[type="password"],
select, textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 150, 150, 0.18);
}
textarea { resize: vertical; min-height: 70px; }

.btn {
  display: inline-block;
  width: auto;
  padding: 11px 18px;
  background: white;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn:hover { background: #f1f5f9; }
.btn-primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  font-weight: 700;
  padding: 13px 22px;
  font-size: 15px;
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-primary:disabled { background: #94a3b8; border-color: #94a3b8; cursor: not-allowed; }
.btn-block { width: 100%; display: block; text-align: center; }
.btn-google {
  background: white;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-weight: 600;
  padding: 12px 18px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.btn-google svg { width: 20px; height: 20px; }
.btn-ghost {
  background: transparent;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
}
.btn-danger {
  background: #fef2f2;
  color: var(--red);
  border-color: #fecaca;
}
.btn-danger:hover { background: #fee2e2; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  display: none;
}
.alert.show { display: block; }
.alert.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.alert.error   { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.alert.info    { background: var(--brand-soft); border: 1px solid #b8e2e2; color: var(--brand-dark); }

.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar .logo img { height: 36px; }
.topbar nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.topbar nav a {
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px;
}
.topbar nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.topbar .user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.topbar .user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

footer.page-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
footer.page-footer a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
footer.page-footer a:hover { text-decoration: underline; }
.contacts {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.contacts strong { color: var(--text); }
