/* Base theme */
:root {
  --primary: #0375c3;
  --accent: #ff9206;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #101828;
  --muted: #6b7280;
  --ring: rgba(3, 117, 195, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.container {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.06);
  padding: 28px;
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #0a93f0);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}
.logo-img {
  width: auto;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}
.title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3, 117, 195, 0.10);
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.input, .select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input-wrap { position: relative; }
.toggle-pass-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
}
.toggle-pass-btn:hover { color: var(--text); }
.input:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.row {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .row.two { grid-template-columns: 1fr 1fr; }
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: transform .05s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 18px rgba(3, 117, 195, 0.25);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(255, 146, 6, 0.25);
}

.link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto 16px;
  padding: 16px 24px;
}
.navbar .brand { display: flex; gap: 10px; align-items: center; }
.navbar .brand .name { font-weight: 800; }

.content { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 24px 24px; }

.banner {
  background: linear-gradient(135deg, var(--primary), #0a93f0);
  color: #fff;
  padding: 18px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 18px;
}

/* Garantir que todo texto dentro do banner azul fique branco */
.banner .subtitle { color: #fff; }
.banner strong { color: #fff; }
.banner .badge { background: rgba(255,255,255,0.15); color: #fff; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.success { background: #065f46; }
.toast.error { background: #991b1b; }

/* Helpers for layout adjustments */
.centered { margin-left: auto; margin-right: auto; }
.mt-24 { margin-top: 24px; }
.card.wide { max-width: 960px; width: 100%; }
