:root {

  --asa-bg: #f8fafc;

  --asa-text: #0f172a;
  --asa-text-light: #64748b;

  --asa-primary: #4f46e5;

  --asa-border: #e2e8f0;

  --asa-space-lg: 24px;
  --asa-space-xl: 32px;

}

/* ===================================================== */
/* RESET BÁSICO */
/* ===================================================== */

html,
body {
  margin: 0;
  padding: 0;
  height: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--asa-text);
  line-height: 1.4;
}


/* ===================================================== */
/* AUTH LAYOUT */
/* ===================================================== */

.bg-auth {
  background: var(--asa-bg);

  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: var(--asa-space-lg);
}


/* ===================================================== */
/* CONTAINER */
/* ===================================================== */

.container-auth {
  width: 100%;
  max-width: 420px;
  margin: 0;
}


/* ===================================================== */
/* CARD */
/* ===================================================== */

.asa-card {
  background: #ffffff;

  border: 1px solid var(--asa-border);

  border-radius: 14px;

  padding: 24px;

  box-shadow:
    0 8px 24px rgba(0,0,0,0.06);
}


/* ===================================================== */
/* TIPOGRAFIA */
/* ===================================================== */

.asa-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

.asa-subtitle {
  font-size: 14px;
  color: var(--asa-text-light);
  margin-top: 6px;
  margin-bottom: 16px;
}


/* ===================================================== */
/* LABEL */
/* ===================================================== */

label {
  font-size: 14px;
  font-weight: 500;
}


/* ===================================================== */
/* INPUT */
/* ===================================================== */

.asa-input {
  display: block;

  width: 100%;

  padding: 10px 12px;

  margin-top: 4px;
  margin-bottom: 14px;

  border: 1px solid var(--asa-border);

  border-radius: 8px;

  background: #ffffff;

  font-size: 14px;

  outline: none;

  transition: border-color 0.15s;
}

.asa-input:focus {
  border-color: var(--asa-primary);
}


/* ===================================================== */
/* BUTTON */
/* ===================================================== */

.asa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  padding: 10px 14px;

  border: none;

  border-radius: 10px;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  transition: opacity 0.15s;

  margin-top: 8px;
}

.asa-btn.primary {
  background: var(--asa-primary);
  color: #ffffff;
}

.asa-btn.primary:hover {
  opacity: 0.92;
}


/* ===================================================== */
/* LINKS */
/* ===================================================== */

.link-asa {
  color: var(--asa-text);
  text-decoration: none;
  font-size: 14px;
}

.link-asa:hover {
  text-decoration: underline;
}

.link-asa-muted {
  color: var(--asa-text-light);
  text-decoration: none;
  font-size: 13px;
}

.link-asa-muted:hover {
  text-decoration: underline;
}

.text-accent {
  color: var(--asa-primary);
}


/* ===================================================== */
/* LEGAL TEXT */
/* ===================================================== */

.legal-text {
  font-size: 12px;
  color: var(--asa-text-light);
  line-height: 1.4;
  margin-top: 14px;
}

.legal-text a {
  color: var(--asa-primary);
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}


/* ===================================================== */
/* EMBED MODE (MODAL) — CORREÇÃO REAL */
/* ===================================================== */

body.embed-mode .bg-auth {
  background: transparent;

  min-height: auto;

  padding: 0;
}

body.embed-mode .container-auth {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.embed-mode .asa-card {
  border: none;
  box-shadow: none;
  border-radius: 0;

  padding: 24px;
}


/* ===================================================== */
/* REMOVE ESPAÇO FANTASMA */
/* ===================================================== */

form {
  margin: 0;
}

form > *:last-child {
  margin-bottom: 0;
}

.asa-card > *:last-child {
  margin-bottom: 0;
}

iframe {
  display: block;
  border: 0;
}