/* ===== Linky – Auth pages (Login / Register) ===== */
:root {
  --auth-bg: #070d19;
  --auth-card: #07050e;
  --auth-border: #39373e;
  --auth-card-border: rgba(62, 109, 205, 0.17);
  --auth-blue: #0f7ef8;
  --auth-btn: #2050b1;
}

body.auth-body {
  margin: 0;
  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: 1100px;
  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;
}

.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: #07050e;
}
.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 #273c65 inset;
  color: #fff;
  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: #07050e;
  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;
  }
}
