/* ===== Linky – Auth pages (Login / Register) ===== */
:root {
  --auth-bg: #0d0e2e;
  --auth-card: #0d0e2e;
  --auth-border: #39373e;
  --auth-card-border: rgba(62, 109, 205, 0.17);
  --auth-blue: #beec4b;
  --auth-btn: #beec4b;
}

html { overflow-x: hidden; }

body.auth-body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: var(--auth-bg);
  color: #fff;
  font-family: "Manrope", -apple-system, Roboto, Helvetica, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* faint grid backdrop */
.auth-grid {
  position: absolute;
  inset: 0 0 auto 0;
  height: 620px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 75px;
  pointer-events: none;
}
.auth-glow {
  position: absolute;
  left: 50%;
  top: -260px;
  width: min(1100px, 160vw);
  max-width: 160vw;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(32, 80, 177, 0.45), transparent 70%);
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}

.auth-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 60px 16px 80px;
}

.auth-card {
  width: 100%;
  max-width: 640px;
  padding: 40px 40px 50px;
  border-radius: 26px;
  border: 1px solid var(--auth-card-border);
  background: var(--auth-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.auth-logo {
  width: 50px;
  height: 61px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.auth-head {
  width: 100%;
}
.auth-head h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}
.auth-head p {
  font-size: 16px;
  line-height: 170%;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field label {
  display: block;
  font-size: 14px;
  line-height: 170%;
  margin-bottom: 12px;
}
.control {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 61px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: #0d0e2e;
}
.control i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}
.control input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
}
.control input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.control:focus-within {
  border-color: var(--auth-blue);
}
.toggle-pass {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  font-size: 18px;
}

.link-blue {
  color: var(--auth-blue);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: underline;
}
.text-right {
  text-align: right;
  display: block;
}

.btn-auth {
  width: 100%;
  border: 0;
  border-radius: 52px;
  background: var(--auth-btn);
  box-shadow: 0 -3px 3px 0 rgba(0,0,0,.18) inset;
  color: #140b75;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 19.2px;
  padding: 14.5px 24px;
  cursor: pointer;
}
.btn-auth:hover {
  filter: brightness(1.12);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.social-row {
  display: flex;
  gap: 8px;
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 61px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: #0d0e2e;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}
.social-btn:hover {
  border-color: var(--auth-blue);
  color: #fff;
}
.social-btn img {
  width: 24px;
  height: 24px;
}

.auth-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  flex-wrap: wrap;
}

.alert-box {
  width: 100%;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
}
.alert-error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.45);
  color: #ffb3ba;
}
.alert-success {
  background: rgba(25, 135, 84, 0.12);
  border: 1px solid rgba(25, 135, 84, 0.45);
  color: #a9e6c6;
}
.alert-box ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 28px 20px 34px;
    border-radius: 18px;
    gap: 28px;
  }
  .auth-head h1 {
    font-size: 26px;
  }
  .social-row {
    flex-direction: column;
  }
}

/* lime theme contrast fixes */
.btn-auth { color: #140b75 !important; }


/* ===== mobile responsiveness ===== */
@media (max-width: 767.98px) {
  .auth-wrap { padding: 34px 14px 56px; }
  .auth-card { max-width: 100%; box-sizing: border-box; }
  .auth-grid { height: 420px; background-size: 46px 46px; }
}
@media (max-width: 575.98px) {
  .auth-wrap { padding: 24px 12px 44px; }
  .auth-card { padding: 22px 16px 28px; gap: 22px; }
  .auth-head h1 { font-size: 23px; }
  .auth-head p { font-size: 14px; }
  .control { height: 54px; padding: 12px 14px; gap: 10px; }
  .control input { font-size: 15px; min-width: 0; }
  .field label { font-size: 13px; margin-bottom: 8px; }
  .link-blue { font-size: 14px; }
  .btn-auth { font-size: 15px; padding: 13px 18px; }
  .auth-foot { font-size: 14px; gap: 8px; }
  .auth-form { gap: 18px; }
  .alert-box { font-size: 13px; padding: 12px 14px; }
}
@media (max-width: 359.98px) {
  .auth-head h1 { font-size: 20px; }
  .auth-card { padding: 18px 12px 24px; }
}

/* ---------- "Account not found" popup ---------- */
.lk-pop-back { position: fixed; inset: 0; background: rgba(4,7,20,.72); display: grid; place-items: center; z-index: 999; padding: 18px; }
.lk-pop-back[hidden] { display: none !important; }
.lk-pop {
  width: min(420px, 100%); background: #0d1430; color: #fff; text-align: center;
  border: 1px solid rgba(190,236,75,.35); border-radius: 22px; padding: 30px 26px;
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
}
.lk-pop i.big { font-size: 40px; color: #beec4b; }
.lk-pop h3 { font-size: 19px; font-weight: 800; margin: 12px 0 8px; }
.lk-pop p { font-size: 14px; color: rgba(255,255,255,.72); margin: 0 0 20px; }
.lk-pop .row-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lk-pop a.pop-primary {
  background: #beec4b; color: #140b75; font-weight: 800; text-decoration: none;
  border-radius: 999px; padding: 11px 22px; font-size: 14px;
}
.lk-pop button.pop-ghost {
  background: transparent; color: rgba(255,255,255,.75); cursor: pointer;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 11px 22px; font-size: 14px;
}
