/* Telas de entrada (Login.html e Cadastro.html), copiadas do painel legado
   (painel.medleads.app/sign-in e /sign-up, que vinham do Webflow).
   O portal (apps/portal) usa este mesmo arquivo nas páginas /sign-in e /sign-up. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  --auth-bg: #f5faff;
  --auth-card: #ffffff;
  --auth-text: #475569;
  --auth-strong: #222222;
  --auth-line: #cbd5e1;
  --auth-link: #2d62ff;
  --auth-error: #b91c1c;
  --auth-font: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body.auth {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: var(--auth-bg);
  color: var(--auth-text);
  font: 400 16px/24px var(--auth-font);
}

.auth-card {
  width: 100%;
  max-width: 720px;
  padding: 48px 16px 32px;
  background: var(--auth-card);
  border-radius: 6px;
  display: flex;
  justify-content: center;
}

.auth-wrap {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-wrap[hidden] { display: none; }

.auth-logo { width: 100%; max-width: 240px; height: auto; }

.auth-title {
  margin: 32px 0 16px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  text-align: center;
}

.auth-options { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.auth-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 0;
  border: 0.67px solid var(--auth-line);
  border-radius: 16px;
  background: transparent;
  color: var(--auth-strong);
  font: inherit;
  cursor: pointer;
}

.auth-option img { width: 22px; height: 22px; }
.auth-option:hover { background: var(--auth-bg); }
.auth-option:disabled { opacity: 0.6; cursor: progress; }
.auth-option.is-strong { font-weight: 600; }

.auth-small { margin: 16px 0 0; font-size: 14px; line-height: 21px; }

.auth-footer { margin: 32px 0 0; font-weight: 500; text-align: center; }

.auth a, .auth-link {
  color: var(--auth-link);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.auth-footer a { font-weight: 500; }

.auth-form { width: 100%; display: flex; flex-direction: column; gap: 8px; }

.auth-form label { font-size: 14px; font-weight: 500; color: var(--auth-strong); }

.auth-form input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  font: inherit;
  color: var(--auth-strong);
  background: var(--auth-card);
}

.auth-form input:focus-visible,
.auth-option:focus-visible,
.auth-submit:focus-visible,
.auth a:focus-visible,
.auth-link:focus-visible { outline: 2px solid var(--auth-link); outline-offset: 2px; }

.auth-submit {
  margin-top: 8px;
  padding: 8px 0;
  border: 0;
  border-radius: 16px;
  background: var(--auth-link);
  color: #ffffff;
  font: 600 16px/24px var(--auth-font);
  cursor: pointer;
}

.auth-submit:disabled { opacity: 0.6; cursor: progress; }

.auth-error { margin: 4px 0 0; color: var(--auth-error); font-size: 14px; line-height: 21px; }
.auth-error[hidden] { display: none; }

.auth-note { margin: 0; font-size: 14px; line-height: 21px; text-align: center; }
