/* Login + role panels */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--color-ivory);
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 20s ease-out forwards;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(36, 33, 38, 0.25) 0%,
    rgba(36, 33, 38, 0.72) 100%
  );
}

.auth-visual__copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  max-width: 28rem;
}

.auth-visual__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0.75rem 0 0.85rem;
}

.auth-visual__copy p {
  color: rgba(247, 244, 239, 0.82);
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem;
  background:
    radial-gradient(ellipse at top, var(--color-blush) 0%, transparent 50%),
    var(--color-ivory);
}

.auth-card {
  width: min(100%, 420px);
  animation: rise 0.7s var(--ease) both;
}

.auth-card .brand {
  margin-bottom: 2rem;
  display: inline-block;
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.auth-card > p {
  color: var(--color-taupe);
  margin-bottom: 1.75rem;
}

.auth-card .form {
  padding: 0;
  border: 0;
  background: transparent;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--color-taupe);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 4px;
}

.password-toggle:hover,
.password-toggle.is-visible {
  color: var(--color-charcoal);
}

.password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 1rem;
}

.auth-row a {
  font-size: 0.85rem;
  color: var(--color-taupe);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-row a:hover {
  color: var(--color-charcoal);
}

.auth-view {
  animation: rise 0.45s var(--ease) both;
}

.auth-view h2,
.forgot-panel h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.auth-view > p,
.forgot-panel > p {
  color: var(--color-taupe);
  margin-bottom: 1.75rem;
}

.forgot-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.forgot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.forgot-note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--color-taupe);
}

.auth-meta {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--color-taupe);
  font-size: 0.88rem;
}

.auth-meta a {
  color: var(--color-charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dashboards */
.dash {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.dash__side {
  background: var(--color-charcoal);
  color: var(--color-ivory);
  padding: 1.75rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dash__side .brand small {
  color: rgba(247, 244, 239, 0.55);
}

.dash__side nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.dash__side a {
  padding: 0.7rem 0.8rem;
  border-radius: 4px;
  color: rgba(247, 244, 239, 0.7);
  font-size: 0.92rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.dash__side a:hover,
.dash__side a.is-active {
  background: rgba(247, 244, 239, 0.1);
  color: var(--color-ivory);
}

.dash__main {
  padding: 1.75rem;
  background:
    radial-gradient(ellipse at top right, var(--color-blush) 0%, transparent 42%),
    radial-gradient(ellipse at bottom left, var(--color-sage) 0%, transparent 38%),
    var(--color-ivory);
}

.dash__hero {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 220px;
  margin-bottom: 1.75rem;
  color: var(--color-ivory);
}

.dash__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 33, 38, 0.75), rgba(36, 33, 38, 0.2));
}

.dash__hero-copy {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 34rem;
}

.dash__hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.dash__hero-copy p {
  color: rgba(247, 244, 239, 0.82);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.dash-tile {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(36, 33, 38, 0.08);
  border-radius: 4px;
  animation: rise 0.55s var(--ease) both;
}

.dash-tile:nth-child(2) {
  animation-delay: 0.06s;
}
.dash-tile:nth-child(3) {
  animation-delay: 0.12s;
}
.dash-tile:nth-child(4) {
  animation-delay: 0.18s;
}
.dash-tile:nth-child(5) {
  animation-delay: 0.24s;
}
.dash-tile:nth-child(6) {
  animation-delay: 0.3s;
}

.dash-tile h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.dash-tile p {
  color: var(--color-taupe);
  font-size: 0.9rem;
}

.dash-tile .tag {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-taupe);
}

.couple-dash .dash__side {
  background: linear-gradient(180deg, #3a3340, var(--color-charcoal));
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 42vh;
  }

  .dash {
    grid-template-columns: 1fr;
  }

  .dash__side nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
