/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Generic unauthenticated layout for identity.techfx.com.br.
   Vertical-neutral and token-driven (engines/ui tokens only, no raw values);
   verticals can later specialize the surface/brand. */
.auth {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-24);
  background: var(--color-background-neutral-subtle);
  font-family: var(--font-family-paragraph), system-ui, sans-serif;
}

.auth__shell {
  width: 100%;
  max-width: 400px;
}

.auth__brand {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-32);
}

.auth__card {
  padding: var(--spacing-32);
  background: var(--color-background-inverse-white);
  border: var(--border-width-1) solid var(--color-stroke-neutral-subtle);
  border-radius: var(--border-radius-xl);
}

.auth__flash {
  margin: 0 0 var(--spacing-16);
  padding: var(--spacing-12) var(--spacing-16);
  border: var(--border-width-1) solid transparent;
  border-radius: var(--border-radius-md);
}

.auth__flash--alert {
  color: var(--color-text-danger-primary);
  background: var(--color-background-danger-subtle);
  border-color: var(--color-stroke-danger-subtle);
}

.auth__flash--notice {
  color: var(--color-text-positive-primary);
  background: var(--color-background-positive-subtle);
  border-color: var(--color-stroke-positive-subtle);
}

/* Login form */
.auth__head {
  margin-bottom: var(--spacing-24);
}

.auth__head h1 {
  margin: 0 0 var(--spacing-4);
  color: var(--color-text-neutral-primary);
}

.auth__muted {
  color: var(--color-text-neutral-secondary);
}

.auth__strong {
  color: var(--color-text-neutral-primary);
  font-weight: var(--font-weight-medium);
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
}

/* The full-width CTA is a layout choice the form owns — Ui::Button hugs its
   label by default, so the form stretches it. (Ui::Input already fills.) */
.auth__form .ui-button {
  width: 100%;
  justify-content: center;
}

.auth__google {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-16);
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  margin: var(--spacing-16) 0;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: var(--border-width-1);
  background: var(--color-stroke-neutral-subtle);
}

.auth__foot {
  margin-top: var(--spacing-16);
  text-align: center;
}

.auth__link,
.auth__linkbtn {
  color: var(--color-text-brand-secondary);
  text-decoration: none;
}

.auth__linkbtn {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
