/**
 * Portal de autenticação — alinhado ao site corporativo Oba Labs
 */

.oba-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #f8f9fb;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

.oba-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 106, 0, 0.07), transparent 65%);
}

.oba-auth-shell {
  position: relative;
  width: 100%;
  max-width: 68rem;
}

.oba-auth-card {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 36rem;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
}

@media (min-width: 768px) {
  .oba-auth-card {
    grid-template-columns: 1fr 1fr;
    min-height: 40rem;
  }
}

/* —— Painel de marca —— */

.oba-auth-brand {
  position: relative;
  display: none;
  flex-direction: column;
  padding: 2rem 2rem 2.5rem;
  background: #f8f9fb;
  border-right: 1px solid #e8eaed;
  overflow: hidden;
}

@media (min-width: 768px) {
  .oba-auth-brand {
    display: flex;
  }
}

.oba-auth-brand-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 106, 0, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255, 201, 51, 0.08), transparent 50%);
}

.oba-auth-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.oba-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  width: fit-content;
  text-decoration: none;
  color: #111827;
}

.oba-auth-logo img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
}

.oba-auth-logo span {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.oba-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.75rem;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border: 1px solid #e8eaed;
  border-radius: 9999px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.oba-auth-badge svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #ff6a00;
  flex-shrink: 0;
}

.oba-auth-brand-title {
  margin: 1.25rem 0 0;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111827;
}

.oba-auth-brand-sub {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #6b7280;
  max-width: 22rem;
}

.oba-auth-showcase {
  position: relative;
  margin-top: auto;
  padding-top: 1.75rem;
}

.oba-auth-showcase-img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 0.875rem;
  border: 1px solid #e8eaed;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.oba-auth-stat {
  position: absolute;
  display: none;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e8eaed;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
}

@media (min-width: 1024px) {
  .oba-auth-stat {
    display: block;
  }
}

.oba-auth-stat-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.oba-auth-stat-value {
  margin-top: 0.125rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.oba-auth-stat-desc {
  font-size: 0.6875rem;
  color: #6b7280;
}

.oba-auth-stat--left {
  left: -0.75rem;
  bottom: 2.5rem;
  max-width: 8.5rem;
}

.oba-auth-stat--right {
  right: -0.5rem;
  top: 1rem;
  max-width: 7.5rem;
}

/* —— Formulário —— */

.oba-auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #fff;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .oba-auth-form-panel {
    padding: 2.5rem 3rem;
  }
}

.oba-auth-form-panel-inner {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

.oba-auth-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .oba-auth-mobile-logo {
    display: none;
  }
}

.oba-auth-heading {
  margin: 0 0 0.375rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: #111827;
}

@media (min-width: 768px) {
  .oba-auth-heading {
    font-size: 2rem;
  }
}

.oba-auth-subheading {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  text-align: center;
  color: #6b7280;
  line-height: 1.5;
}

.oba-auth-field {
  margin-bottom: 1.25rem;
}

.oba-auth-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.oba-auth-input-wrap {
  position: relative;
}

.oba-auth-input-icon {
  position: absolute;
  inset-block: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  pointer-events: none;
  color: #9ca3af;
}

.oba-auth-input-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.oba-auth-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.25;
  color: #111827;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 0.625rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.oba-auth-input--toggle {
  padding-right: 2.75rem;
}

.oba-auth-input::placeholder {
  color: #9ca3af;
}

.oba-auth-input:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

.oba-auth-input.is-invalid {
  border-color: #dc2626;
}

.oba-auth-input-toggle {
  position: absolute;
  inset-block: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding-right: 0.75rem;
  border: 0;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.12s ease;
}

.oba-auth-input-toggle:hover {
  color: #6b7280;
}

.oba-auth-input-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.oba-auth-field-hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.oba-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.oba-auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
}

.oba-auth-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #ff6a00;
  cursor: pointer;
}

.oba-auth-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ff6a00;
  text-decoration: none;
  transition: color 0.12s ease;
}

.oba-auth-link:hover {
  color: #e55f00;
}

.oba-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #ff6a00;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(255, 106, 0, 0.25);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.oba-auth-btn:hover {
  background: #e55f00;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.28);
}

.oba-auth-btn:active {
  transform: scale(0.99);
}

.oba-auth-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.oba-auth-footer-text {
  margin-top: 2rem;
  font-size: 0.875rem;
  text-align: center;
  color: #374151;
}

.oba-auth-divider {
  position: relative;
  margin: 2rem 0;
}

.oba-auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: #e8eaed;
}

.oba-auth-divider span {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9ca3af;
  background: #fff;
}

.oba-auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 0.625rem;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.oba-auth-social-btn:hover {
  background: #f8f9fb;
  border-color: #d1d5db;
}

.oba-auth-social-btn img {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.oba-auth-social-btn + .oba-auth-social-btn,
.oba-auth-social-wrap > * + * {
  margin-top: 0.75rem;
}

.oba-auth-back {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.12s ease;
}

.oba-auth-back:hover {
  color: #111827;
}

.oba-auth-form-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.oba-auth-form-stack .oba-auth-field:last-of-type {
  margin-bottom: 1.5rem;
}

.oba-auth-checkbox-block {
  margin-bottom: 1.5rem;
}

.oba-auth-checkbox-block .oba-auth-checkbox {
  align-items: flex-start;
}

.oba-auth-checkbox-block .oba-auth-checkbox input {
  margin-top: 0.125rem;
}

.oba-auth-notice {
  margin-bottom: 1.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-radius: 0.625rem;
  background: rgba(255, 106, 0, 0.06);
  text-align: left;
}

.oba-auth-notice-label {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

.oba-auth-notice-value {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  word-break: break-all;
}

.oba-auth-text-muted {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  text-align: center;
  color: #6b7280;
  line-height: 1.5;
}
