/* =====================================================================
   Fiction Bank — Login page styles
   ===================================================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------------
   BACKGROUND BEHIND THE LOGIN
   To use your own photo: drop it in the /assets folder (e.g.
   assets/login-bg.jpg) and change the line below to:
       --login-bg-image: url("../assets/login-bg.jpg");
   Recommended image: landscape ~1920 × 1080 px, JPG, under ~500 KB.
   Leave it as "none" to keep the painted dusk-sky background.
   (Tip: with a photo you can delete the <div class="login-bg__skyline">
   block in login.html if you don't want the building silhouette.)
   --------------------------------------------------------------------- */
:root { --login-bg-image: url("../assets/login-bg.png"); }

/* Background, fixed behind everything. Layers (top → bottom):
   1) a translucent overlay so text/photos stay legible
   2) your optional photo (--login-bg-image)
   3) the painted dusk-sky fallback gradient */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(26,61,71,.35) 0%, rgba(42,61,71,.20) 55%, rgba(168,146,84,.22) 100%),
    var(--login-bg-image),
    linear-gradient(180deg, #1a3d47 0%, #2a5d6f 22%, #3a6d7f 42%, #5a7d8f 62%, #a89254 82%, #b8a854 100%);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.login-bg__skyline {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: -1;
  opacity: .92;
  pointer-events: none;
}
.login-bg__skyline svg { width: 100%; height: auto; display: block; }

/* Dark header bar with centered logo */
.login-header {
  background: linear-gradient(180deg, rgba(26,61,71,.96), rgba(26,61,71,.45) 70%, transparent);
  padding: 16px 0 26px;
  text-align: center;
}
/* White chip behind the logo so a colored image reads on the dark header */
.login-header .brand {
  color: #fff;
  font-size: 1.25rem;
  background: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.login-header .brand__img { height: 34px; }
.login-header .brand__fallback .brand__name { color: var(--brand-dark); }

/* Main area holds the card — always centered */
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}

/* Wrapper: logo stacked above card */
.login-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 440px;
}

/* Logo floating over the background */
.login-logo {
  display: block;
  text-decoration: none;
}
.login-logo img {
  height: 50px;
  width: auto;
  max-width: 230px;
  display: block;
  /* visible on any background color */
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.55));
}

.login-card {
  background: #fff;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 34px 34px;
}
/* Footer over the photo */
.login-footer {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(2px);
  padding: 22px 0 26px;
  font-size: .82rem;
}
.login-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 12px;
}
.login-footer__links a,
.login-footer__links .lang-toggle { color: #41607e; }
.login-footer__links .lang-toggle {
  background: none;
  border: 0;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
  padding: 0;
}
.login-footer__links .lang-toggle:hover { color: var(--brand); text-decoration: underline; }
.login-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  color: var(--muted);
  margin-bottom: 10px;
}
/* Social media icons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.social-links__item {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8edf3;
  color: #41607e;
  transition: background .15s ease, color .15s ease;
}
.social-links__item:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

.login-footer__copy { text-align: center; color: var(--muted); font-size: .78rem; }
.login-footer__disclaimer {
  text-align: center;
  color: var(--muted);
  font-size: .72rem;
  max-width: 720px;
  margin: 8px auto 0;
  line-height: 1.5;
}

/* ============================ Responsive ============================ */
.social-links { flex-wrap: wrap; }

@media (max-width: 560px) {
  .login-main { padding: 24px 16px 40px; align-items: stretch; }
  .login-card-wrap { max-width: 100%; }
  .login-logo img { height: 44px; }
  .login-card { max-width: 100%; padding: 24px 20px 28px; }
  .login-footer { padding: 18px 0 20px; }
  .login-footer__links { gap: 6px 12px; }
  .social-links { gap: 10px; }
  .social-links__item { width: 32px; height: 32px; }
}
