:root {
  --bg: #050714;
  --panel: #0c1023;
  --panel-soft: #0b0f20;
  --line: #1b2343;
  --text: #eaf0ff;
  --muted: #8e97b8;
  --accent: #704bff;
  --accent-2: #943dff;
  --success: #57d38b;
  --danger: #ff5b7d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, #20124f 0%, transparent 35%),
    radial-gradient(circle at 85% 85%, #1f1c52 0%, transparent 35%),
    var(--bg);
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-page--bg {
  background-image:
    linear-gradient(125deg, rgba(4, 7, 22, 0.92), rgba(7, 11, 30, 0.9)),
    url("./log/bg.png");
  background-size: cover, 260px;
  background-repeat: no-repeat, repeat;
  background-position: center, top left;
  background-attachment: fixed, fixed;
}

.auth-shell {
  width: min(1160px, 100%);
  border: 1px solid rgba(120, 145, 255, 0.18);
  background: linear-gradient(155deg, rgba(7, 10, 26, 0.78), rgba(11, 16, 38, 0.72));
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-left,
.auth-right {
  border-radius: 18px;
  border: 1px solid rgba(129, 149, 255, 0.14);
  background: linear-gradient(160deg, rgba(10, 15, 38, 0.84), rgba(8, 11, 29, 0.85));
}

.auth-left {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.4px;
}

.kicker {
  color: #9f8cff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  margin: 4px 0 0;
  font-size: 40px;
  line-height: 1.1;
}

h1 span {
  display: block;
  color: #8d6dff;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42ch;
}

.features {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-bullet {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #2b3566;
  display: grid;
  place-items: center;
  color: #a892ff;
  background: #121834;
  font-size: 14px;
}

.feature strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.coin-card {
  margin-top: auto;
  min-height: 120px;
  /* border: 1px solid #252e57; */
  border-radius: 16px;
  background:
    radial-gradient(circle at center, #3d23b8 0%, transparent 50%),
    #0a1024;
    background:transparent;
  display: grid;
  place-items: center;
  font-size: 52px;
}
.coin-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foot-note {
  color: #7f8ab2;
  font-size: 13px;
}

.foot-note a {
  color: #9c86ff;
  text-decoration: none;
}

.auth-right {
  padding: 28px;
}

.card {
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid rgba(126, 145, 243, 0.16);
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(140deg, rgba(10, 14, 34, 0.72), rgba(8, 12, 31, 0.55));
}

h2 {
  margin: 0;
  font-size: 38px;
}

.helper {
  margin: 8px 0 24px;
  color: var(--muted);
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #c4cee8;
}

.field {
  position: relative;
}

input {
  width: 100%;
  border: 1px solid #212b4e;
  border-radius: 10px;
  background: #0b1022;
  color: #e8eeff;
  padding: 12px 40px 12px 12px;
  outline: none;
}

input:focus {
  border-color: #6e4fff;
  box-shadow: 0 0 0 3px rgba(112, 75, 255, 0.2);
}

.icon-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #98a3c5;
  cursor: pointer;
}

.inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #b9c2df;
  font-size: 13px;
}

.inline a {
  color: #9f8cff;
  text-decoration: none;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(112, 75, 255, 0.28);
}

.separator {
  margin: 4px 0;
  color: #7d88ac;
  font-size: 12px;
  text-align: center;
}

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social {
  border: 1px solid #262f57;
  border-radius: 10px;
  background: #0b1022;
  color: #d6def6;
  padding: 11px 10px;
  cursor: pointer;
}

.safe {
  margin-top: 14px;
  color: #7f8ab2;
  font-size: 12px;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  display: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: spin 0.8s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.form-status {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 160ms ease;
  min-height: 38px;
}

.form-status-success {
  opacity: 1;
  color: var(--success);
  border-color: rgba(87, 211, 139, 0.35);
  background: rgba(87, 211, 139, 0.08);
  animation: fadeIn 180ms ease;
}

.form-status-error {
  opacity: 1;
  color: var(--danger);
  border-color: rgba(255, 91, 125, 0.35);
  background: rgba(255, 91, 125, 0.08);
  animation: fadeIn 180ms ease;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.form-shake {
  animation: shake 0.45s ease;
}

input.input-invalid {
  border-color: rgba(255, 91, 125, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 91, 125, 0.12);
}

/* .safe::before {
  content: "🔒 ";
} */

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    border-radius: 18px;
    padding: 14px;
  }

  .auth-left {
    padding: 22px;
    gap: 18px;
  }

  .auth-right {
    padding: 20px;
  }

  .features {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .coin-card {
    min-height: 100px;
  }

  .card {
    max-width: 100%;
    padding: 18px;
  }

  h1,
  h2 {
    font-size: 32px;
  }
}

@media (max-width: 760px) {
  .auth-page {
    padding: 14px;
    align-items: stretch;
  }

  .auth-page--bg {
    background-attachment: scroll, scroll;
    background-size: cover, 180px;
  }

  .auth-shell {
    gap: 14px;
    border-radius: 16px;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 14px;
  }

  .card {
    border-radius: 14px;
    padding: 16px;
  }

  h2 {
    font-size: 30px;
  }

  .inline {
    flex-direction: column;
    align-items: flex-start;
  }
}
