/* Split Screen Auth Layout */
.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-pane-left {
  display: none;
}

@media (min-width: 1024px) {
  .auth-pane-left {
    display: flex;
    width: 55%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-olive-base);
    color: var(--color-white);
    padding: 3rem;
  }
}

.auth-pane-right {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: var(--color-gray-50);
}

@media (min-width: 1024px) {
  .auth-pane-right {
    width: 45%;
  }
}

.auth-form-container {
  width: 100%;
  max-width: 400px;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  color: var(--color-gray-500);
  text-align: center;
  margin-bottom: 2rem;
}

/* Password reveal toggle.
   The input keeps its full width and the button sits over its trailing edge, so
   nothing about .form-input's sizing has to change — the field is shared with
   the email input above it. */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field .form-input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

/* Colour only on hover. A tinted square inside a rounded field read as a
   separate control bolted onto the edge of the input. */
.password-toggle:hover {
  color: var(--text-strong);
}

.password-toggle.is-revealed {
  color: var(--olive-600);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
}

/* Alpine sets this on x-cloak elements until it has initialised, which stops
   both eye states flashing on first paint. */
[x-cloak] {
  display: none !important;
}
