/* =====================================================================
   POINT OF VIEW — Auth page shell (layouts/auth pages)
   ---------------------------------------------------------------------
   Shared by Log in / Sign up (auth/partials/flip) and the 3 forgot-password
   pages: the two-column grid, the rotating quote on the left
   (auth/partials/quote-panel) and the floating-label fields.
   Pushed once by auth/partials/quote-panel.blade.php.
   Behaviour of the quote: public/js/pov-auth-quotes.js
   ===================================================================== */

.pov-access {
  --pov-font-body: "Poppins", "Noto Sans Myanmar", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pov-font-quote: "Bebas Neue", "Noto Sans Myanmar", "Sora", system-ui, sans-serif;
  --face-bg: rgba(15, 23, 49, 0.94);
  --field-bg: rgba(8, 14, 34, 0.78);

  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  font-family: var(--pov-font-body);
}

/* ---------------------------------------------------------------------
   LEFT: rotating quote (text only)
   --------------------------------------------------------------------- */
.pov-access__aside {
  max-width: 620px;
  padding-left: clamp(0rem, 2vw, 1.5rem);
  text-shadow: 0 2px 24px rgba(11, 19, 43, 0.85);
}
.pov-access__mark {
  display: block;
  height: 0.55em;
  color: var(--pov-accent);
  font-family: var(--pov-font-quote);
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 1;
  text-shadow: 0 0 32px rgba(255, 107, 53, 0.45);
}
.pov-access__quote { margin: 0; }
.pov-access__quote p {
  min-height: 3em; /* the longest quote wraps to 3 lines: no jump while rotating */
  margin: 0;
  color: #fff;
  font-family: var(--pov-font-quote);
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pov-access__quote p.is-fading { opacity: 0; transform: translateY(10px); }
.pov-access__cite {
  margin: 1.25rem 0 0;
  color: var(--pov-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 899.98px) {
  .pov-access { grid-template-columns: minmax(0, 460px); justify-content: center; }
  .pov-access__aside { display: none; }
}

/* ---------------------------------------------------------------------
   Floating-label fields (same look on every auth card)
   --------------------------------------------------------------------- */
/* Floating label fields: <div.pov-field> icon · input[placeholder=" "] · label · (toggle) */
.pov-field { position: relative; }
.pov-access .pov-field__input.pov-input {
  height: 52px;
  padding: 1.2rem 1rem 0.35rem 2.85rem;
  border-radius: var(--pov-r-md);
  background-color: var(--field-bg);
  font-family: var(--pov-font-body);
  font-size: 0.95rem;
}
.pov-access .pov-password .pov-field__input.pov-input { padding-right: 4.4rem; }
.pov-access .pov-field__input.pov-input:focus {
  border-color: var(--pov-accent);
  background-color: rgba(8, 14, 34, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}
.pov-field__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  color: var(--pov-text-dim);
  font-size: 1rem;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 0.2s ease;
}
.pov-field:focus-within .pov-field__icon { color: var(--pov-accent); }
.pov-field__label {
  position: absolute;
  left: 2.85rem;
  top: 50%;
  max-width: calc(100% - 4rem);
  margin: 0;
  overflow: hidden;
  color: var(--pov-text-dim);
  font-size: 0.92rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: transform 0.2s ease, color 0.2s ease;
}
.pov-password .pov-field__label { max-width: calc(100% - 7.5rem); }
.pov-field__input:focus + .pov-field__label,
.pov-field__input:not(:placeholder-shown) + .pov-field__label,
.pov-field__input:-webkit-autofill + .pov-field__label {
  transform: translateY(calc(-50% - 11px)) scale(0.76);
}
.pov-field__input:focus + .pov-field__label { color: var(--pov-accent); }
.pov-field__input.is-invalid + .pov-field__label { color: #ff8aa1; }
.pov-access .pov-field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--pov-text);
  caret-color: var(--pov-text);
  box-shadow: 0 0 0 1000px #0c1430 inset;
  transition: background-color 9999s ease-out;
}
.pov-access .pov-field__input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #0c1430 inset, 0 0 0 4px rgba(255, 107, 53, 0.2);
}
.pov-access .pov-password__toggle { z-index: 1; font-family: var(--pov-font-body); }

@media (prefers-reduced-motion: reduce) {
  .pov-access__quote p { transition: none; }
}
