/* login_style.css */

/* Theme variables */
:root {
  --violet-deep: #28136e;
  --violet-corner: #4021a8;
  --near-black: #080b2b;
  --void: #030515;
  --qh-violet: #b56bff;
  --qh-magenta: #d50cd5;
  --qh-ice: #f3e9ff;
  --qh-text: rgba(255, 255, 255, 0.92);
  --qh-panel-1: rgba(0, 0, 0, 0.55);
  --qh-panel-2: rgba(0, 0, 0, 0.35);
  --qh-border: rgba(181, 107, 255, 0.28);
  --qh-glow-1: rgba(181, 107, 255, 0.25);
  --qh-glow-2: rgba(213, 12, 213, 0.2);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0; /* keep this — without it the browser's default body margin leaves a blank strip around the edge, outside the gradient */

  background:
    radial-gradient(
      circle at top right,
      var(--violet-corner) 0%,
      transparent 35%
    ),
    radial-gradient(
      circle at center,
      var(--violet-deep) 0%,
      var(--near-black) 55%,
      var(--void) 100%
    );
  background-attachment: fixed;
  color: var(--text);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* Logo */
#logo {
  width: 525px;
  height: auto;
  margin: 28px 0 0;
}

/* Layout wrapper between logo and footer */
.wrapper {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
  color: var(--qh-text);
}

/* Footer */
footer {
  width: 100%;
  text-align: center;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #aeadad;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #c733cc;
}
.footer-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 700px;
  margin: 4px auto 0;
  line-height: 1.4;
}

/* Login panel */
#login_box {
  background: linear-gradient(180deg, var(--qh-panel-1), var(--qh-panel-2));
  color: var(--qh-text);
  padding: clamp(20px, 4vw, 26px) clamp(20px, 4vw, 26px)
    clamp(18px, 3.5vw, 22px);
  border-radius: 14px;
  width: min(94vw, 420px);

  border: 1px solid var(--qh-border);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(181, 107, 255, 0.22),
    0 0 26px rgba(213, 12, 213, 0.18);

  backdrop-filter: blur(6px);
}

#login_box:hover {
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(213, 12, 213, 0.22),
    0 0 34px rgba(181, 107, 255, 0.28);
}

#login_box h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-align: center;
  text-shadow: 0 0 10px rgba(181, 107, 255, 0.25);
}

/* Input + icon groups */
.input-group-qf {
  position: relative;
  margin-bottom: 14px;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon i {
  color: var(--qh-violet);
  font-size: 18px;
  text-shadow:
    0 0 4px rgba(181, 107, 255, 0.6),
    0 0 8px rgba(213, 12, 213, 0.35);
  transition: all 0.25s ease;
}

/* Inputs */
.qf_gen_text_input {
  width: 100%;
  font-size: 16px;
  border-radius: 10px;
  padding: 12px 14px 12px 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.qf_gen_text_input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.qf_gen_text_input:hover {
  border-color: rgba(181, 107, 255, 0.55);
}

.qf_gen_text_input:focus {
  outline: none;
  border-color: rgba(181, 107, 255, 0.9);
  box-shadow:
    0 0 0 3px rgba(181, 107, 255, 0.22),
    0 0 18px rgba(213, 12, 213, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.input-group-qf:focus-within .input-icon i {
  color: #e6c8ff;
  text-shadow:
    0 0 6px rgba(213, 12, 213, 0.8),
    0 0 12px rgba(181, 107, 255, 0.6);
}

/* Turnstile */
.turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin: 14px 0 18px;
  min-height: 65px;
}

/* Submit button (QHarmonix) */
.qf_gen_submit_button {
  display: inline-block;
  border: none;
  cursor: pointer;
  position: relative;

  width: 100%;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #1a001f;

  border-radius: 40px;
  padding: 12px 18px;

  background: linear-gradient(135deg, #f3e9ff 0%, #e6c8ff 40%, #ffffff 100%);

  box-shadow:
    0 0 0 2px rgba(181, 107, 255, 0.9),
    0 0 0 6px rgba(213, 12, 213, 0.35),
    0 0 18px rgba(181, 107, 255, 0.25);

  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.qf_gen_submit_button:hover {
  transform: translateY(-1px) scale(1.01);
  background: linear-gradient(135deg, #ffffff 0%, #e6c8ff 50%, #f3e9ff 100%);
  box-shadow:
    0 0 0 2px rgba(213, 12, 213, 1),
    0 0 0 8px rgba(181, 107, 255, 0.55),
    0 0 26px rgba(213, 12, 213, 0.4);
}

.qf_gen_submit_button:active {
  transform: scale(0.985);
  box-shadow:
    0 0 0 2px rgba(181, 107, 255, 0.6),
    0 0 0 5px rgba(213, 12, 213, 0.25),
    0 0 10px rgba(0, 0, 0, 0.2);
}

.qf_gen_submit_button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px rgba(181, 107, 255, 0.9),
    0 0 18px rgba(213, 12, 213, 0.6);
}

@keyframes qh-pulse {
  0% {
    box-shadow:
      0 0 0 2px rgba(181, 107, 255, 0.8),
      0 0 18px rgba(181, 107, 255, 0.25);
  }
  100% {
    box-shadow:
      0 0 0 3px rgba(213, 12, 213, 1),
      0 0 24px rgba(213, 12, 213, 0.45);
  }
}

.qf_gen_submit_button {
  animation: qh-pulse 4s ease-in-out infinite alternate;
}

/* Links */
.login-links hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(181, 107, 255, 0.7),
    rgba(213, 12, 213, 0.6),
    transparent
  );
  margin: 20px 0;
}

.login-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.login-links a:hover {
  color: var(--qh-ice);
  text-shadow: 0 0 10px rgba(181, 107, 255, 0.35);
}

/* Modal theme */
.qh-modal {
  background: rgba(10, 10, 16, 0.92);
  border: 1px solid rgba(181, 107, 255, 0.25);
  box-shadow: 0 0 30px rgba(181, 107, 255, 0.18);
}

.qh-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    90deg,
    rgba(181, 107, 255, 0.18),
    rgba(213, 12, 213, 0.12)
  );
}

.qh-modal-body {
  color: rgba(255, 255, 255, 0.92);
}

.qh-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(181, 107, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 14px rgba(213, 12, 213, 0.12);
}

.qh-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(213, 12, 213, 0.55);
  color: #fff;
}

/* Password toggle inside input */
.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
}

.password-toggle i {
  color: var(--qh-violet);
  font-size: 18px;
  text-shadow:
    0 0 4px rgba(181, 107, 255, 0.6),
    0 0 8px rgba(213, 12, 213, 0.35);
  transition: all 0.25s ease;
}

.password-toggle:hover i {
  color: #e6c8ff;
  text-shadow:
    0 0 6px rgba(213, 12, 213, 0.8),
    0 0 12px rgba(181, 107, 255, 0.6);
}

/* Make room for the icon on the right */
.qf_gen_text_input {
  padding-right: 46px;
}

/* Responsive */
@media (max-width: 480px) {
  #logo {
    width: 315px;
    height: auto;
    margin: 20px 0 0;
  }

  .wrapper {
    margin-top: 40px;
    justify-content: center;
  }

  .qf_gen_text_input {
    font-size: 18px;
    padding: 14px 14px 14px 44px;
  }

  .qf_gen_submit_button {
    width: 100%;
    font-size: 18px;
    padding: 14px 18px;
  }
}

/* Phone landscape */
@media (max-width: 899px) and (orientation: landscape) {
  #login_box {
    margin-bottom: 10px;
  }
}

/* Tablet portrait */
@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
  #logo {
    width: 488px;
    height: auto;
    margin: 24px 0 0;
  }
}
