/*=========================
   Table of Contents
=========================*/
/*
   1   Auth Page
   2   Cover Background
   3   Column
   4   Ribbon
   5   Strip
   6   Card
   7   Header
   8   Form
   9   Forgot Password
   10  Nav
   11  Responsive
*/

/*=========================
   Auth Page
=========================*/

.partners-auth {
  --strip-width: 548px;
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: var(--secondary-gradient);
}

/*=========================
   Cover Background
=========================*/
/* Same recipe as core's .workspace-cover-bg (grid pattern + blurred glow),
   but --secondary-gradient (violet→fuchsia) instead of --primary-gradient
   (blue→violet) — fills the whole page behind the column, instead of
   sitting in half the page like workspace's split-screen cover. */

.partners-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(var(--white-rgb) / 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--white-rgb) / 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.partners-auth::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-full);
  background: var(--white-10);
  filter: blur(130px);
  pointer-events: none;
}

/*=========================
   Column
=========================*/
/* Ribbon + strip stacked, same width — one continuous vertical column
   sitting on top of the full-bleed cover background, instead of a
   full-width ribbon bar over a narrower box. */

.partners-auth-column {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--strip-width);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

/*=========================
   Ribbon
=========================*/
/* The one element that makes this login unmistakable at a glance —
   neither workspace's split-cover nor backoffice's plain card use a
   colored band, and --secondary isn't the dominant action color
   anywhere else in the app. */

.partners-auth-ribbon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--secondary);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.partners-auth-ribbon .material-symbols-rounded {
  font-size: 1.1rem;
}

/*=========================
   Strip
=========================*/

.partners-auth-strip {
  flex: 1;
  width: 100%;
  background: var(--background);
  display: flex;
}

/*=========================
   Card
=========================*/

.partners-auth-card {
  width: 100%;
  max-width: 380px;
  margin: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.partners-auth-card .menu-logo {
  align-self: flex-start;
  /* barebat-primary.svg bakes ~3.5px of empty left padding into its
     viewBox before the wordmark starts — invisible at nav-bar size, but
     noticeable here lined up directly above "Entrar". Nudges the glyph
     back to the same left edge as the text below it. */
  margin-left: -4px;
}

/*=========================
   Header
=========================*/

.partners-auth-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/*=========================
   Form
=========================*/

.partners-auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.partners-complete-profile-form label {
  margin-top: 10px;
}

/*=========================
   Forgot Password
=========================*/

.partners-auth-forgot {
  display: flex;
  justify-content: flex-end;
}

.partners-auth-forgot-link {
  color: var(--secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
}

.partners-auth-forgot-link:hover {
  text-decoration: underline;
}

/*=========================
   Nav
=========================*/
/* "ou navegue para" + 2 buttons — same pattern as backoffice's login nav. */

.partners-auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.partners-auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.partners-auth-divider span {
  position: relative;
  padding-inline: var(--space-3);
  background: var(--background);
}

/*=========================
   Responsive
=========================*/

@media (max-width: 480px) {
  .partners-auth-card {
    padding: var(--space-5);
  }
}
