/* Login — mesmo padrão visual do iOfertas Pesquisas (auth.css) */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .auth-page {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 960px) {
  .auth-panel { padding: 3rem 4rem; }
}

.auth-panel--brand {
  background: var(--accent-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

@media (min-width: 960px) {
  .auth-panel--brand { min-height: 100vh; }
}

.auth-panel--brand__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
}

.auth-panel--brand__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

.auth-panel--brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--accent) 48%, transparent) 0%,
      color-mix(in srgb, var(--accent-dark) 55%, transparent) 100%
    ),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.auth-brand-copy {
  position: relative;
  max-width: 22rem;
  margin-top: 0;
}

.auth-brand-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.auth-brand-copy p {
  margin: 0;
  opacity: 0.88;
  font-size: 0.98rem;
  line-height: 1.6;
}

.auth-panel--form {
  background: var(--bg, #fff);
}

.auth-form-wrap {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.auth-form-brand {
  margin: 0 0 1.75rem;
}

.auth-form-brand .brand__img--login {
  display: block;
  height: auto;
  max-height: 52px;
  width: auto;
  max-width: min(220px, 100%);
  object-fit: contain;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input::placeholder {
  color: var(--text-tertiary);
}

.alert {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert--error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.alert--error strong {
  display: block;
  margin-bottom: 0.25rem;
}

.alert--error details {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.alert--error details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
}

.alert--error pre {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-muted);
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.7rem;
}

.auth-forgot {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
}

.auth-forgot a {
  color: var(--accent);
  font-weight: 600;
}

.auth-forgot a:hover { text-decoration: underline; }

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

.auth-options input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--lg { padding: 0.75rem 1.35rem; font-size: 0.95rem; }

.btn--block { width: 100%; }
