:root {
  --auth-canvas: #efefec;
  --auth-surface: #ffffff;
  --auth-soft: #f7f7f4;
  --auth-border: #e7e6e1;
  --auth-text: #1b1c18;
  --auth-muted: #6d6f68;
  --auth-dark: #1e201b;
  --auth-coral: #17456b;
  --auth-coral-hover: #0f2a44;
  --auth-coral-rgb: 23, 69, 107;
  --auth-on-dark: #fff;
  --auth-on-accent: #fff;
}

body.elohim-auth-ui {
  min-height: 100vh;
  padding: 12px;
  background: var(--auth-canvas);
  color: var(--auth-text);
  font-family: "Inter", "Hanken Grotesk", system-ui, sans-serif;
}

body.elohim-auth-ui .card,
body.elohim-auth-ui .shell {
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 24px;
  background: var(--auth-surface);
  box-shadow: 0 18px 54px rgba(35, 35, 30, .09);
}

body.elohim-auth-login .shell {
  width: min(1120px, 100%);
  max-width: none;
  min-height: min(680px, calc(100vh - 24px));
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
}

body.elohim-auth-ui .marca {
  position: relative;
  overflow: hidden;
  background: var(--auth-dark);
  color: var(--auth-on-dark);
}

body.elohim-auth-ui .marca::before,
body.elohim-auth-ui .marca::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

body.elohim-auth-ui .marca::before {
  width: 320px;
  height: 320px;
  right: -130px;
  top: -120px;
  background: var(--auth-coral);
  opacity: .92;
}

body.elohim-auth-ui .marca::after {
  width: 210px;
  height: 210px;
  right: 70px;
  bottom: -130px;
  border: 36px solid rgba(255, 255, 255, .08);
}

body.elohim-auth-ui .marca > * { position: relative; z-index: 1; }
body.elohim-auth-ui .marca-logo.marca-logo--personalizada { padding: 0; background: transparent; box-shadow: none; }
body.elohim-auth-ui .marca-logo.marca-logo--personalizada img { width: min(270px, 100%); height: 58px; object-position: left center; }
body.elohim-auth-ui .marca-de,
body.elohim-auth-ui .marca-texto,
body.elohim-auth-ui .marca li { color: color-mix(in srgb, var(--auth-on-dark) 76%, transparent); }
body.elohim-auth-ui .marca-tag { color: var(--auth-on-dark); letter-spacing: -.035em; }

body.elohim-auth-ui .acesso { background: var(--auth-surface); }
body.elohim-auth-ui h1,
body.elohim-auth-ui h2 { color: var(--auth-text); letter-spacing: -.04em; }
body.elohim-auth-ui .marca h1 { color: var(--auth-on-dark); }
body.elohim-auth-ui .marca li::before { background: var(--auth-coral); }
body.elohim-auth-ui .acesso-sub,
body.elohim-auth-ui .sub,
body.elohim-auth-ui .dica { color: var(--auth-muted); }

body.elohim-auth-ui input {
  min-height: 44px;
  border-color: #d8d7d1;
  border-radius: 12px;
  background: var(--auth-surface);
  color: var(--auth-text);
}

body.elohim-auth-ui input:hover { background: var(--auth-soft); }
body.elohim-auth-ui input:focus {
  border-color: var(--auth-coral);
  background: var(--auth-surface);
  box-shadow: 0 0 0 4px rgba(var(--auth-coral-rgb), .16);
}

body.elohim-auth-ui button {
  min-height: 44px;
  border-radius: 12px;
  border-color: var(--auth-dark);
  background: var(--auth-dark);
  color: var(--auth-on-dark);
  font-weight: 750;
  box-shadow: none;
}

body.elohim-auth-ui button:hover {
  border-color: var(--auth-coral);
  background: var(--auth-coral);
  color: var(--auth-on-accent);
  transform: none;
}

body.elohim-auth-ui a { color: var(--auth-dark); text-underline-offset: 3px; }
body.elohim-auth-ui .erro { border-radius: 12px; background: #fdebed; color: #9f2938; }
body.elohim-auth-ui .ok { border-radius: 12px; background: #e5f5ef; color: #176b4b; }

@media (max-width: 880px) {
  body.elohim-auth-ui { padding: 8px; }
  body.elohim-auth-login .shell {
    width: 100%;
    min-height: calc(100vh - 16px);
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  body.elohim-auth-ui .marca::before { width: 220px; height: 220px; }
}

@media (max-width: 420px) {
  body.elohim-auth-ui .card,
  body.elohim-auth-ui .shell { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body.elohim-auth-ui *,
  body.elohim-auth-ui *::before,
  body.elohim-auth-ui *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
