:root {
  --bg: #07111d;
  --panel: #0d1a28;
  --panel-soft: #101e2d;
  --line: #263747;
  --text: #edf4f6;
  --muted: #9aabb7;
  --accent: #44c6a1;
  --accent-2: #43a9c7;
  --success: #57d38b;
  --danger: #ff788d;
}

* {
  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 12% 12%, rgba(38, 115, 113, 0.2), transparent 34%),
    radial-gradient(circle at 88% 86%, rgba(38, 100, 130, 0.15), transparent 36%),
    var(--bg);
}

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

.auth-page--bg {
  background-image:
    linear-gradient(125deg, rgba(5, 14, 23, 0.96), rgba(7, 18, 29, 0.94)),
    url("./log/bg.png");
  background-size: cover, 260px;
  background-repeat: no-repeat, repeat;
  background-position: center, top left;
  background-attachment: fixed, fixed;
}

.auth-page--signup {
  align-items: flex-start;
}

.auth-shell {
  width: min(1180px, 100%);
  border: 1px solid rgba(162, 190, 201, 0.12);
  background: rgba(10, 23, 35, 0.78);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 14px;
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.auth-left,
.auth-right {
  min-width: 0;
  border-radius: 20px;
  border: 1px solid rgba(162, 190, 201, 0.1);
  background: linear-gradient(155deg, rgba(17, 34, 48, 0.94), rgba(11, 25, 38, 0.96));
}

.auth-left {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
  position: relative;
}

.auth-left::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -170px;
  top: 22%;
  border: 1px solid rgba(68, 198, 161, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(68, 198, 161, 0.025), 0 0 0 68px rgba(68, 198, 161, 0.02);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1px;
  color: #f4f8f8;
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #06231f;
  background: linear-gradient(140deg, #69dfbb, #4bafc7);
  box-shadow: 0 8px 20px rgba(55, 190, 160, 0.18);
  font-size: 17px;
}

.auth-mobile-brand {
  display: none;
  text-decoration: none;
}

.kicker {
  color: #70d8ba;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -1.8px;
}

h1 span {
  display: block;
  color: #aabdc4;
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: -1.1px;
  margin-top: 8px;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 42ch;
  font-size: 15px;
}

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

.feature {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.feature-bullet {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  border: 1px solid rgba(112, 216, 186, 0.22);
  display: grid;
  place-items: center;
  color: #70d8ba;
  background: rgba(68, 198, 161, 0.08);
  font-size: 14px;
}

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

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

.coin-card {
  margin-top: auto;
  min-height: 140px;
  border: 1px solid rgba(162, 190, 201, 0.11);
  border-radius: 18px;
  overflow: hidden;
  background: #081521;
  display: grid;
  place-items: center;
  font-size: 52px;
  position: relative;
  z-index: 1;
}
.coin-card img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
}

.foot-note {
  color: #99aeb8;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.foot-note a {
  color: #70d8ba;
  text-decoration: none;
  font-weight: 600;
}

.auth-right {
  padding: clamp(22px, 4vw, 48px);
  display: flex;
  align-items: center;
}

.card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid rgba(162, 190, 201, 0.1);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(7, 19, 30, 0.58);
}

h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.8px;
}

.helper {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

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

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #c4d1d6;
  font-weight: 600;
}

.field {
  position: relative;
}

input {
  width: 100%;
  border: 1px solid #2b3d4a;
  border-radius: 11px;
  background: #091824;
  color: #edf4f6;
  padding: 14px 42px 14px 14px;
  outline: none;
  font: inherit;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input::placeholder {
  color: #738792;
}

input:focus {
  border-color: #51cba7;
  background: #0b1c29;
  box-shadow: 0 0 0 3px rgba(68, 198, 161, 0.13);
}

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

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

.inline a {
  color: #70d8ba;
  text-decoration: none;
}

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

.checkbox input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: #44c6a1;
  flex: 0 0 16px;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 14px 16px;
  font-weight: 600;
  color: #06211c;
  background: linear-gradient(110deg, #67dfba, #4fb7c4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 26px rgba(43, 185, 155, 0.2);
}

.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: #8fa4ae;
  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:empty {
  display: none;
}

.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);
}

.auth-page--signup .coin-card {
  display: none;
}

.auth-page--signup .auth-left {
  justify-content: center;
}

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

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

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

  .auth-right {
    padding: 24px;
    align-items: flex-start;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .card {
    max-width: 560px;
    padding: 24px;
  }

  .auth-page--signup {
    align-items: flex-start;
  }
}

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

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

  .auth-shell {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .card {
    max-width: 520px;
    padding: 24px 20px;
    border-radius: 18px;
    border-color: rgba(162, 190, 201, 0.14);
    background: rgba(9, 23, 35, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  }

  h2 {
    font-size: 28px;
  }

  .inline {
    flex-direction: row;
    align-items: center;
  }

  .auth-mobile-brand {
    display: flex;
    margin: 0 auto 18px;
    width: min(520px, 100%);
    font-size: 16px;
  }

  .auth-page--signup .inline {
    align-items: flex-start;
  }

  .auth-page--signup .checkbox {
    align-items: flex-start;
    line-height: 1.55;
  }

  .mobile-login,
  .mobile-signup {
    display: block;
    margin-top: 2px;
    color: #a6b7be;
    font-size: 13px;
  }

  .mobile-login a,
  .mobile-signup a {
    color: #70d8ba;
    font-weight: 600;
    text-decoration: none;
  }
}

@media (max-width: 420px) {
  .auth-page {
    padding: 14px 12px;
  }

  .card {
    padding: 22px 17px;
  }

  .inline {
    flex-wrap: wrap;
    gap: 12px;
  }
}
