/* ==========================================================================
   Log in – two redirect cards that fill the first screen (Figma "Desktop - 7")
   ========================================================================== */

/* Header ≈ 108px; cards take the rest of the screen */
.login { display: flex; padding: 48px 0 72px; min-height: calc(100svh - 108px); }
.login__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.login-card {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  min-height: 420px;
  padding: 56px 64px 48px;
  border-radius: var(--radius-panel);
  background: var(--g-card);
}
.login-card { position: relative; overflow: hidden; }
/* Photo fills the top of the card and fades into it, text stays at the bottom */
.login-card__photo {
  position: absolute; inset: 0 0 auto; z-index: 0;
  width: 100%; height: 62%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
          mask-image: linear-gradient(to bottom, #000 45%, transparent);
}
.login-card > :not(.login-card__photo) { position: relative; z-index: 1; }
.login-card__title { color: var(--c-accent); font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; }
.login-card__text { max-width: 480px; margin-top: 20px; font-size: 18px; line-height: 1.8; }
.login-card .btn { margin-top: 28px; }

@media (max-width: 991px) {
  /* Both cards on the first screen: header ≈ 100px, then two equal halves */
  .login { padding: 12px 0 16px; min-height: 0; }
  .login__grid { grid-template-columns: 1fr; gap: 12px; }
  .login-card { min-height: max(260px, calc((100svh - 100px - 40px) / 2)); padding: 20px 22px; border-radius: 24px; }
  .login-card__photo { height: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 25%, rgba(0,0,0,.25) 70%, transparent); mask-image: linear-gradient(to bottom, #000 25%, rgba(0,0,0,.25) 70%, transparent); }
  .login-card__title { font-size: 28px; }
  .login-card__text { margin-top: 6px; font-size: 14px; line-height: 1.5; }
  .login-card .btn { height: 40px; margin-top: 14px; padding: 0 22px; font-size: 14px; }
}

/* Footer starts right below the cards, visible as soon as you scroll */
.login { padding-bottom: 40px; }
.page-login .site-footer { margin-top: 0; padding-top: 48px; }
@media (max-width: 991px) { .login { padding-bottom: 16px; } }
