* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top center, rgba(241, 196, 15, 0.14), transparent 30%),
    linear-gradient(180deg, #171717 0%, #0d0d0d 58%, #070707 100%);
  color: #f2f2f2;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 455px;
  background: #181818;
  border: 1px solid #333333;
  border-radius: 24px;
  padding: 30px;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(241, 196, 15, 0.06);
}

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

.logo-wrap img {
  width: 115px;
  height: auto;
  display: block;
  object-fit: contain;
}

.fallback-logo {
  display: none;
  color: #f1c40f;
  font-weight: 1000;
  font-size: 46px;
  letter-spacing: -2px;
}

.login-heading {
  text-align: center;
  margin-bottom: 24px;
}

.login-heading h1 {
  margin: 0 0 8px;
  color: #f1c40f;
  font-size: 30px;
  line-height: 1.1;
}

.login-heading p {
  margin: 0;
  color: #d0d0d0;
  font-size: 14px;
  line-height: 1.45;
}

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

.login-form label {
  color: #f4f4f4;
  font-weight: 800;
  font-size: 14px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  height: 50px;
  margin-top: 7px;
  border-radius: 14px;
  border: 1px solid #333333;
  background: #101010;
  color: #ffffff;
  padding: 0 14px;
  outline: none;
  font-size: 15px;
}

.login-form input:focus {
  border-color: rgba(241, 196, 15, 0.75);
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.10);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b8b8b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f1c40f;
  cursor: pointer;
  flex: 0 0 auto;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #202020;
  border: 1px solid #333333;
  border-radius: 15px;
  padding: 13px;
  line-height: 1.45;
}

.legal-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #f1c40f;
  flex: 0 0 auto;
}

.legal-check span {
  color: #dcdcdc;
  font-weight: 700;
}

.legal-check a,
.legal-links a {
  color: #f1c40f;
  font-weight: 900;
  text-decoration: none;
}

.legal-check a:hover,
.legal-links a:hover {
  text-decoration: underline;
}

.small-note {
  margin: -5px 0 0;
  color: #a8a8a8;
  font-size: 12px;
  line-height: 1.35;
}

button {
  height: 54px;
  border: none;
  border-radius: 15px;
  background: #f1c40f;
  color: #111111;
  font-weight: 1000;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(241, 196, 15, 0.22);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.message {
  min-height: 20px;
  margin: 0;
  text-align: center;
  color: #ff7777;
  font-size: 13px;
  font-weight: 800;
}

.message.success {
  color: #65d98b;
}

.legal-links {
  margin-top: 20px;
  text-align: center;
  color: #777777;
  font-size: 13px;
}

.copyright {
  margin-top: 10px;
  text-align: center;
  color: #555555;
  font-size: 12px;
}

@media (max-width: 540px) {
  .login-page {
    padding: 12px;
  }

  .login-card {
    padding: 22px;
    border-radius: 20px;
  }

  .login-heading h1 {
    font-size: 25px;
  }

  .logo-wrap img {
    width: 95px;
  }
}


.legal-agreement-box[hidden] {
  display: none !important;
}

.legal-agreement-box.show {
  animation: legalSlideIn 0.18s ease-out;
}

@keyframes legalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.legal-agreement-box {
  display: block;
  margin-top: 2px;
}

.legal-agreement-box[hidden] {
  display: none !important;
}
.logo-wrap.two-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.logo-wrap.two-logos img {
  width: 105px;
  height: auto;
  max-height: 95px;
  object-fit: contain;
  display: block;
}

@media (max-width: 540px) {
  .logo-wrap.two-logos {
    gap: 12px;
  }

  .logo-wrap.two-logos img {
    width: 82px;
    max-height: 78px;
  }
}