/* Login — layout split (padrão iOfertas Pesquisas) */
.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;
}

.auth-panel--brand__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.auth-brand-copy {
  max-width: 22rem;
}

.auth-brand-copy h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.875rem;
}

.auth-brand-copy p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.98rem;
  line-height: 1.6;
}

.auth-panel--form {
  background: var(--bg-elevated);
}

.auth-form-wrap {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.auth-form-brand {
  margin: 0 0 1.75rem;
}

.auth-form-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.auth-form-brand h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.auth-form-brand p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-form-wrap .field {
  margin-bottom: 1.1rem;
}

.auth-form-wrap .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;
}

.auth-form-wrap .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;
}

.auth-form-wrap .field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-form-wrap .btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.12s;
}

.auth-form-wrap .btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.auth-form-wrap .btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-forgot,
.auth-foot {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-forgot a,
.auth-foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot a:hover,
.auth-foot a:hover {
  text-decoration: underline;
}

.auth-form-wrap .alert {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.auth-form-wrap .alert--error,
.auth-form-wrap .alert-error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.auth-form-wrap .alert--info {
  background: rgba(78, 115, 223, 0.08);
  color: var(--accent-dark);
  border: 1px solid rgba(78, 115, 223, 0.25);
}

.auth-form-wrap .field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Portal compacto (pós-login comprador/fornecedor) */
.auth-page--center {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  border: 1px solid var(--border);
}

.auth-card-wide {
  max-width: 480px;
}
