html,
body {
  margin: 0;
  min-height: 100%;
}

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

body {
  min-height: 100vh;
  overflow: hidden;
  font-family: "Cinzel", "Segoe UI", serif;
  color: #eef3f5;
  background: #020a10;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(1, 8, 14, 0.34), rgba(1, 8, 14, 0.86)),
    radial-gradient(circle at 50% 12%, rgba(201, 162, 63, 0.2), transparent 30%),
    url("../../IMG/Login/6b49d880-c6b7-45d1-826d-0ce2d9a79eb4.png") center / cover no-repeat;
}

.login-panel {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(218, 198, 129, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%),
    rgba(4, 13, 20, 0.88);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.62),
    0 28px 70px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
}

.login-kicker {
  margin: 0 0 8px;
  color: rgba(220, 230, 235, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.login-title {
  margin: 0;
  color: #fff7d8;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.login-copy {
  margin: 12px auto 22px;
  max-width: 340px;
  color: rgba(238, 243, 245, 0.76);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.login-alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(223, 93, 93, 0.38);
  border-radius: 5px;
  background: rgba(80, 24, 24, 0.42);
  color: #ffd0d0;
  font-family: "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.login-alert[hidden] {
  display: none;
}

.login-form,
.login-actions {
  display: grid;
  gap: 10px;
}

.login-form label {
  display: grid;
  gap: 6px;
}

.login-form label span {
  color: rgba(220, 230, 235, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(218, 198, 129, 0.22);
  border-radius: 5px;
  outline: 0;
  background: rgba(1, 8, 14, 0.78);
  color: #eef3f5;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
}

.login-form input:focus {
  border-color: rgba(255, 230, 160, 0.58);
  box-shadow: 0 0 0 2px rgba(201, 162, 63, 0.12);
}

.login-form input::placeholder {
  color: rgba(220, 230, 235, 0.42);
}

.forgot-link {
  justify-self: end;
  color: rgba(241, 210, 122, 0.82);
  font-size: 11px;
  text-decoration: none;
}

.forgot-link:hover {
  color: #fff7d8;
}

.login-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(218, 198, 129, 0.3);
  border-radius: 5px;
  color: #fff7d8;
  background:
    linear-gradient(90deg, rgba(201, 162, 63, 0.18), rgba(255, 230, 160, 0.04), rgba(201, 162, 63, 0.14)),
    rgba(7, 20, 28, 0.82);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.login-button:hover {
  border-color: rgba(255, 230, 160, 0.62);
  background:
    linear-gradient(90deg, rgba(201, 162, 63, 0.28), rgba(255, 230, 160, 0.08), rgba(201, 162, 63, 0.22)),
    rgba(10, 35, 46, 0.92);
}

.login-button--google {
  border-color: rgba(238, 243, 245, 0.24);
  background: rgba(238, 243, 245, 0.92);
  color: #07141c;
}

.login-button--google:hover {
  color: #07141c;
  background: #fff7d8;
}

.login-button--ghost {
  background: rgba(1, 8, 14, 0.54);
  color: rgba(238, 243, 245, 0.78);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: rgba(220, 230, 235, 0.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(218, 198, 129, 0.16);
}

.login-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(218, 198, 129, 0.16);
  color: rgba(220, 230, 235, 0.62);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.login-legal {
  position: fixed;
  left: 50%;
  bottom: 18px;
  width: min(720px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  z-index: 2;
}

.content-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.content-badge {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 245, 0.34);
  border-radius: 5px;
  background: rgba(1, 8, 14, 0.72);
  color: #eef3f5;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: help;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.content-badge--age {
  border-color: rgba(223, 93, 93, 0.7);
  color: #ffb8b8;
  font-size: 12px;
}

.content-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(280px, 80vw);
  padding: 10px 12px;
  border: 1px solid rgba(218, 198, 129, 0.26);
  border-radius: 5px;
  background: rgba(4, 13, 20, 0.96);
  color: rgba(238, 243, 245, 0.86);
  font-family: "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.content-badge:hover::after,
.content-badge:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.legal-links a,
.legal-links button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(218, 198, 129, 0.22);
  border-radius: 5px;
  background: rgba(1, 8, 14, 0.62);
  color: rgba(238, 243, 245, 0.76);
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-links a:hover,
.legal-links button:hover {
  border-color: rgba(255, 230, 160, 0.5);
  color: #fff7d8;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 22px;
}

.legal-modal.is-open {
  display: grid;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 14, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.legal-modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(218, 198, 129, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    rgba(4, 13, 20, 0.96);
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.58),
    0 24px 70px rgba(0, 0, 0, 0.58);
}

.legal-modal__panel h2 {
  margin: 0 34px 16px 0;
  color: #fff7d8;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(218, 198, 129, 0.28);
  border-radius: 5px;
  background: rgba(1, 8, 14, 0.72);
  color: #fff7d8;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.legal-modal__close:hover {
  border-color: rgba(255, 230, 160, 0.58);
}

.legal-modal__content {
  display: grid;
  gap: 12px;
}

.legal-modal__content article {
  padding: 12px;
  border: 1px solid rgba(192, 192, 192, 0.12);
  border-radius: 6px;
  background: rgba(2, 12, 19, 0.72);
}

.legal-modal__content h3 {
  margin: 0 0 8px;
  color: #fff7d8;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-modal__content p {
  margin: 0;
  color: rgba(238, 243, 245, 0.76);
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  body {
    overflow: auto;
  }

  .login-page {
    align-items: start;
    padding: 18px 18px 150px;
  }

  .login-panel {
    margin-top: 24px;
    padding: 22px;
  }

  .login-legal {
    position: absolute;
    bottom: 18px;
  }
}
