/**
 * Auth — alinhado ao visual do nocontrole® (Poppins + cards do tema).
 */
.nc-auth {
  --nc-auth-primary: var(--bs-primary, #3167f3);
  --nc-auth-primary-rgb: var(--bs-primary-rgb, 49, 103, 243);
  min-height: 100dvh;
  margin: 0;
  background: var(--bs-body-bg, #f5f6fa);
  color: var(--bs-body-color, #212529);
  font-family: "Poppins", var(--bs-font-sans-serif, system-ui, sans-serif);
}

.nc-auth h1,
.nc-auth h2,
.nc-auth h3,
.nc-auth h4,
.nc-auth .btn,
.nc-auth .form-control,
.nc-auth .form-label,
.nc-auth a {
  font-family: inherit;
}

.nc-auth__shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .nc-auth__shell {
    grid-template-columns: 1fr 1fr;
  }
}

/* Painel ilustração — fundo branco para fundir com a arte */
.nc-auth__brand {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  background: #fff;
  border-right: 1px solid var(--bs-border-color, #dee2e6);
}

@media (min-width: 992px) {
  .nc-auth__brand {
    display: flex;
  }
}

.nc-auth__brand-art {
  width: 100%;
  max-width: 26rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc-auth__brand-art .nc-img-slot,
.nc-auth__brand-art .nc-img-slot__frame {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.nc-auth__brand-art .nc-img-slot--auth .nc-img-slot__frame {
  min-height: 0;
  height: auto;
}

.nc-auth__brand-art .nc-img-slot__img {
  object-fit: contain;
}

.nc-auth__brand-copy {
  max-width: 26rem;
  text-align: center;
}

.nc-auth__brand-copy h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--bs-body-color, #212529);
}

.nc-auth__brand-copy p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--bs-secondary-color, #6c757d);
  line-height: 1.5;
}

/* Formulário */
.nc-auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
}

.nc-auth__card {
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.08));
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.nc-auth__header {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1.25rem 1.25rem 1.15rem;
}

.nc-auth__header a {
  display: inline-block;
  text-decoration: none;
}

.nc-auth__header img {
  height: 48px;
  width: auto;
}

.nc-auth__header h2 {
  margin: 0.85rem 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.nc-auth__header p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.nc-auth__body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.nc-auth__mobile-brand {
  display: none;
}

.nc-auth__form .form-label {
  font-size: 0.8125rem;
  font-weight: 500;
}

.nc-auth__form .form-control {
  min-height: 2.5rem;
}

.nc-auth__field {
  margin-bottom: 0.85rem;
}

.nc-auth__field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.nc-auth__link {
  color: var(--nc-auth-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8125rem;
}

.nc-auth__link:hover {
  text-decoration: underline;
}

.nc-auth__password {
  position: relative;
}

.nc-auth__password .form-control {
  padding-right: 2.5rem;
}

.nc-auth__password-toggle {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color, #6c757d);
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nc-auth__password-toggle:hover,
.nc-auth__password-toggle:focus-visible {
  color: var(--nc-auth-primary);
  outline: none;
  background: rgba(var(--nc-auth-primary-rgb), 0.08);
}

.nc-auth__submit {
  width: 100%;
  margin-top: 0.15rem;
}

.nc-auth__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0 0.85rem;
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.75rem;
  font-weight: 600;
}

.nc-auth__divider::before,
.nc-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bs-border-color, #dee2e6);
}

.nc-auth__oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.5rem;
  border-radius: var(--bs-border-radius, 0.375rem);
  border: 1px solid var(--bs-border-color, #dee2e6);
  background: #fff;
  color: var(--bs-body-color, #212529);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nc-auth__oauth-btn:hover {
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-color: var(--bs-border-color, #ced4da);
  color: var(--bs-body-color, #212529);
}

.nc-auth__oauth-btn i {
  color: #ea4335;
}

.nc-auth__footer {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--bs-secondary-color, #6c757d);
}

.nc-auth__footer a {
  font-weight: 500;
  color: var(--nc-auth-primary);
  text-decoration: none;
}

.nc-auth__footer a:hover {
  text-decoration: underline;
}

.nc-auth__alerts .alert {
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
}

.nc-auth__terms .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nc-auth__terms .form-check-label {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color, #6c757d);
  line-height: 1.45;
}

.nc-auth__terms .form-check-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.nc-auth__legal {
  display: none;
}
