@font-face {
  font-family: 'Shell';
  src: url('clientlib-login-new/resources/fonts/ShellBook.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'Shell';
  src: url('clientlib-login-new/resources/fonts/ShellHeavy.otf') format('opentype');
  font-weight: 700;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #DD1D21;
  --yellow: #FBCE07;
  --text-dark: #404040;
  --text-mid: #595959;
  --card-bg: #FAFAF8;
  --radius: 20px;
}

html, body {
  height: 100%;
  font-family: 'Shell', 'Arial', sans-serif;
  font-weight: 400;
}

/* ── LAYOUT ─────────────────────────────────────────────── */

.page {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  background-image: url('clientlib-login-new/resources/images/hero.jpg');
  background-size: cover;
  background-position: 25% top;
  background-repeat: no-repeat;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 44px 40px 36px;
  width: min(640px, 46vw);
  margin-right: clamp(24px, 4vw, 72px);
  margin-top: 40px;
  margin-bottom: 40px;
}

/* ── LOGO ───────────────────────────────────────────────── */

.logo {
  margin-bottom: 44px;
}

.logo img {
  height: 72px;
  width: auto;
}

/* ── HEADING ────────────────────────────────────────────── */

.headline {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 40px;
}

/* ── BUTTON ─────────────────────────────────────────────── */

.btn-signin {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  padding: 18px 40px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 36px;
}

.btn-signin:hover {
  background: #b91419;
}

/* ── USER GUIDE ─────────────────────────────────────────── */

.user-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 28px;
}

.user-guide:hover {
  text-decoration: underline;
}

.user-guide svg {
  flex-shrink: 0;
}

/* ── FOOTER LINKS ───────────────────────────────────────── */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 14px;
  color: var(--text-mid);
}


.footer-links a {
  color: var(--text-mid);
  text-decoration: underline;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--text-dark);
}

.footer-links .sep {
  margin: 0 8px;
  color: var(--text-mid);
  text-decoration: none;
}

/* ── MOBILE ─────────────────────────────────────────────── */
@media (max-height: 751px) and (min-width: 751px) {
  .bg {
	background-size: cover;
	background-position: 0 15%
  }
  .card {
	padding: 22px 20px 18px;
  }
}

@media (max-width: 751px) {
  .page {
    height: 100vh;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
  }

  .bg {
	background-image: url('clientlib-login-new/resources/images/hero-mobile.jpg');
	background-size: cover;
  }

  .card {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: auto;
    margin: 0 16px 16px;
    border-radius: var(--radius);
    padding: 24px 24px 20px;
    text-align: center;
  }

  .logo {
    justify-content: center;
    margin-bottom: 16px;
  }

  .logo img {
    height: 56px;
  }

  .headline {
    font-size: clamp(18px, 5vw, 22px);
    margin-bottom: 20px;
  }

  .btn-signin {
    display: inline-block;
    width: fit-contents;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    padding: 12px 24px;
    margin-bottom: 16px;

  }

  .user-guide {
    justify-content: center;
    font-size: 14px;
    margin-bottom: 14px;
  }

  .user-guide svg {
    width: 18px;
    height: 18px;
  }

  .footer-links {
    justify-content: center;
    font-size: 11px;
  }
}
