/* ============================================================
   Partner Login — sign-in page
   Reuses tokens + .field styles from styles.css.
   ============================================================ */

.login-page {
  background: var(--inverse-surface); /* Muted Charcoal */
  min-height: 100vh;
  color: var(--inverse-on-surface);
}

.login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* ---- Centered sign-in block ---- */

.login__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  transform: translateY(-48px);
}

.login__brand {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.login__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--surface);
}

.login__content {
  display: flex;
  flex-direction: column;
}

.login__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1.15;
  color: var(--inverse-on-surface);
  margin: 0 0 36px;
  text-wrap: balance;
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Password field: bottom border lives on the control wrapper so the
   toggle button sits inside it. .field / .field__caption come from styles.css. */
.field__control {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(243, 240, 239, 0.5);
  transition: border-color 0.2s var(--ease-out);
}

.field__control:focus-within { border-bottom-color: var(--inverse-primary); }

.field__input--bare {
  border-bottom: none;
  flex: 1;
  min-width: 0;
}

.field__toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  min-width: 44px;  /* touch target */
  min-height: 44px;
  margin: 0;
  color: rgba(243, 240, 239, 0.55);
  cursor: pointer;
  transition: color 0.15s var(--ease-out);
}

.field__toggle:hover { color: var(--inverse-on-surface); }
.field__toggle:focus-visible { outline: 1px solid var(--inverse-primary); outline-offset: 2px; }

.login__forgot {
  align-self: flex-end;
  margin-top: 6px;
  padding: 6px 0; /* touch target */
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--inverse-primary);
  transition: color 0.15s var(--ease-out);
}

.login__forgot:hover { color: var(--surface); }

.login__status {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: #f0b4b4;
}

.login__status--info { color: rgba(243, 240, 239, 0.75); }

/* Primary button — translucent violet fill with a heavier 2px border */
.login__submit {
  margin-top: 6px;
  width: 100%;
  background: #968EA474;
  color: var(--surface);
  border: 2px solid var(--surface-tint);
  padding: 17px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.login__submit:hover { border-color: var(--inverse-primary); }
.login__submit:focus-visible { outline: 2px solid var(--surface); outline-offset: 3px; }
.login__submit[disabled] { opacity: 0.55; cursor: default; }

/* ---- Photo column ---- */

.login__photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #180f27 url('../assets/login-residence.jpg') center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.login__photo-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 85% at 50% 50%,
      rgba(24, 15, 39, 0.34) 0%,
      rgba(24, 15, 39, 0.12) 46%,
      rgba(24, 15, 39, 0) 78%),
    linear-gradient(165deg,
      rgba(20, 18, 40, 0.88) 0%,
      rgba(24, 15, 39, 0.74) 50%,
      rgba(34, 17, 47, 0.60) 100%);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 620px) {
  .login { padding: 40px 22px; }
  .login__brand { top: 28px; left: 22px; }
  .login__panel { gap: 36px; }
}
