/* IO Bebê — cadastro e login (visual claro) */

:root {
  --auth-blue: #6b9fff;
  --auth-pink: #e879a9;
  --auth-bg: linear-gradient(to right, var(--auth-blue) 0%, var(--auth-blue) 50%, var(--auth-pink) 50%, var(--auth-pink) 100%);
  --auth-card: #ffffff;
  --auth-text: #1a1a2e;
  --auth-muted: #64748b;
  --auth-border: #e2e8f0;
  --auth-accent: #7c6cf0;
  --auth-accent-hover: #6b5ce7;
  --auth-gradient: linear-gradient(135deg, #6b9fff, #a78bfa, #e879a9);
  --auth-radius: 14px;
  --auth-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--auth-font);
  font-size: 16px;
  color: var(--auth-text);
  background: var(--auth-bg);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-logo img {
  height: 100px;
  width: auto;
}

.auth-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--auth-text);
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.auth-label-row label {
  margin-bottom: 0;
}

.auth-forgot {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--auth-accent);
  text-decoration: none;
  white-space: nowrap;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--auth-muted);
}

.auth-form input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(124, 108, 240, 0.15);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 2.85rem;
}

.password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.password-toggle:hover {
  color: var(--auth-accent);
  background: rgba(124, 108, 240, 0.08);
}

.password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.auth-submit {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 10px;
  background: var(--auth-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s, transform 0.15s;
}

.auth-submit:hover {
  filter: brightness(1.05);
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

.auth-footer a {
  color: var(--auth-accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.auth-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.auth-back {
  display: inline-block;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(26, 26, 46, 0.15);
}

.auth-back:hover {
  color: #fff;
  text-decoration: underline;
}

.auth-page--thanks .auth-card--thanks {
  max-width: 440px;
  padding: 2rem 1.75rem 1.75rem;
}

.auth-thanks-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-thanks-header .auth-logo {
  margin-bottom: 1.25rem;
}

.auth-thanks-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-thanks-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--auth-gradient);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(107, 159, 255, 0.25);
}

.auth-thanks-title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--auth-text);
}

.auth-thanks-lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--auth-muted);
  line-height: 1.55;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.auth-thanks-panel {
  background: #f8fafc;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.auth-thanks-panel__title {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--auth-accent);
}

.auth-thanks-panel__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--auth-text);
}

.auth-thanks-steps__heading {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--auth-text);
}

.auth-thanks-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-thanks-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.auth-thanks-step__num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(107, 159, 255, 0.12);
  color: var(--auth-accent);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.65rem;
  text-align: center;
}

.auth-thanks-step__text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--auth-text);
  padding-top: 0.1rem;
}

.auth-thanks-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--auth-border);
  text-align: center;
}

.auth-thanks-footer__hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--auth-muted);
  line-height: 1.5;
}

.auth-thanks-cta {
  display: block;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-thanks-support {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--auth-muted);
}

.auth-thanks-support a {
  color: var(--auth-accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-thanks-support a:hover {
  text-decoration: underline;
}
