/* login page */
.login-body {
  min-height: 100vh;
  background: var(--bg);
}

.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left brand panel */
.login__brand {
  display: flex;
  flex-direction: column;
  padding: var(--s-8) var(--s-9);
  border-right: 1px solid var(--hair);
}
.login__mark {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: auto;
}

.login__hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-8) 0;
}
.login__headline {
  font-family: var(--f-display);
  font-size: clamp(var(--t-2xl), 4vw, var(--t-3xl));
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: var(--s-4);
}
.login__sub {
  font-size: var(--t-md);
  color: var(--ink-mute);
  line-height: 1.7;
  max-width: 360px;
}
.login__meta {
  margin-top: auto;
}

/* Right form panel */
.login__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-8) var(--s-7);
  background: var(--surface);
  border-left: 1px solid var(--hair);
}
.login__card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: var(--s-5); }

.login__title {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-style: italic;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-top: var(--s-2);
}
.login__hint {
  font-size: var(--t-sm);
  color: var(--ink-faint);
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  /* dvh avoids the iOS URL-bar gap that 100vh leaves at the bottom */
  .login-body { min-height: 100dvh; }
  .login {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100dvh;
  }

  /* Keep the brand mark (logo) but drop the hero copy + footer meta,
     so phone users still see Zifa branding above the form. */
  .login__brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: none;
    padding: var(--s-6) var(--s-5) 0;
    border-right: none;
  }
  .login__hero,
  .login__meta { display: none; }

  .login__panel {
    padding: var(--s-6) var(--s-5) var(--s-7);
    border-left: none;
  }
}
