﻿@font-face {
  font-family: "Font Awesome 6 Free";
  src: url("../fonts/fa-solid-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0b0d;
  --panel: #222228;
  --panel-deep: #151519;
  --text: #ffffff;
  --muted: #b8b8c4;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #367bff;
  --orange: #ffb32c;
  --pink: #ff4d6d;
  --purple: #8d42ff;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 50% 2%, rgba(255, 181, 48, 0.13), transparent 22rem),
    radial-gradient(circle at 90% 18%, rgba(70, 113, 255, 0.16), transparent 16rem),
    linear-gradient(180deg, #111114 0%, #050506 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.fa-solid {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone-frame {
  position: relative;
  width: min(100%, 430px);
  min-height: min(720px, calc(100vh - 36px));
  overflow: hidden;
  padding: 8px 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background: #0d0d10;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.phone-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 9%, rgba(255, 70, 100, 0.16), transparent 8rem),
    radial-gradient(circle at 88% 10%, rgba(66, 116, 255, 0.18), transparent 8rem),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, auto, 20px 20px, 20px 20px;
  opacity: 0.8;
}

.phone-frame > * {
  position: relative;
  z-index: 1;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #eeeeee;
  background: rgba(255, 255, 255, 0.05);
}

.icon-button i {
  font-size: 16px;
}

.hero-panel {
  position: relative;
  min-height: 162px;
  margin-top: 4px;
  padding: 22px 20px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 74% 44%, rgba(255, 193, 49, 0.24), transparent 4.5rem),
    linear-gradient(145deg, #15151a 8%, #050506 94%);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-panel::after {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 138px;
  height: 104px;
  content: "";
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 28% 30%, #ffd754 0 10px, transparent 11px),
    radial-gradient(circle at 58% 42%, #ffbd30 0 8px, transparent 9px),
    radial-gradient(circle at 75% 28%, #ffe476 0 7px, transparent 8px),
    linear-gradient(145deg, #ff7b38, #f33957 70%);
  transform: rotate(-8deg);
  box-shadow: 0 18px 38px rgba(255, 75, 64, 0.26);
}

.eyebrow {
  margin: 0 0 8px;
  color: #ffd05a;
  font-size: 14px;
  font-weight: 700;
}

.hero-panel h1 {
  max-width: 220px;
  margin: 0;
  font-size: 36px;
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.36);
}

.hero-copy {
  max-width: 248px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.coin,
.spark {
  position: absolute;
  z-index: 1;
}

.coin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5a8, #ffc542 58%, #e98d13);
}

.coin-one {
  top: 18px;
  right: 42px;
}

.coin-two {
  right: 126px;
  bottom: 28px;
}

.spark {
  width: 8px;
  height: 26px;
  border-radius: 12px;
  background: #5f8cff;
}

.spark-one {
  top: 76px;
  right: 92px;
  transform: rotate(38deg);
}

.spark-two {
  top: 48px;
  right: 150px;
  background: #ff5a76;
  transform: rotate(-24deg);
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 12px;
  padding: 6px;
  border-radius: 19px;
  background: #202025;
}

.tab-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 15px;
  color: #d8d8df;
  font-weight: 800;
  background: transparent;
}

.tab-button i {
  font-size: 15px;
}

.tab-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2f6dff, #7b42ff);
  box-shadow: 0 10px 20px rgba(56, 103, 255, 0.28);
}

.auth-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(38, 38, 43, 0.94);
  box-shadow: inset 0 0 0 1px var(--line);
}

.auth-form {
  display: none;
}

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

.field {
  display: grid;
  gap: 8px;
  color: #f3f3f6;
  font-size: 14px;
  font-weight: 800;
}

.input-wrap {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--panel-deep);
}

.input-wrap:focus-within {
  border-color: rgba(75, 122, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(64, 111, 255, 0.12);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.input-wrap input::placeholder {
  color: #737382;
}

.field-icon {
  width: 22px;
  color: #4f8bff;
  font-size: 17px;
  text-align: center;
}

.fa-lock {
  color: #ffb232;
}

.fa-shield-halved {
  color: #36d78f;
}

.fa-gift {
  color: #ff5b72;
}

.code-wrap {
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
}

.code-button {
  min-width: 62px;
  height: 32px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff3f64, #ffb236);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.form-row a {
  color: #ffd05a;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: #346fff;
}

.primary-action {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, #3477ff, #8143ff);
  box-shadow: 0 14px 28px rgba(57, 109, 255, 0.34);
}

.primary-action.warm {
  background: linear-gradient(135deg, #ff3f63, #ffb72e);
  box-shadow: 0 14px 28px rgba(255, 99, 54, 0.3);
}

@media (max-width: 520px) {
  .page-shell {
    display: block;
    min-height: 100vh;
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-panel h1 {
    font-size: clamp(32px, 9.5vw, 36px);
  }
}

@media (max-width: 360px) {
  .phone-frame {
    padding-inline: 12px;
  }

  .hero-panel {
    min-height: 150px;
    padding: 20px 18px;
  }

  .auth-card {
    padding: 14px;
  }

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

.fa-house::before { content: "\f015"; }
.fa-list-check::before { content: "\f0ae"; }
.fa-users::before { content: "\f0c0"; }
.fa-circle-user::before { content: "\f2bd"; }
.fa-user::before { content: "\f007"; }
.fa-plus::before { content: "\2b"; }
.fa-bullhorn::before { content: "\f0a1"; }
.fa-chevron-left::before { content: "\f053"; }
.fa-chevron-right::before { content: "\f054"; }
.fa-id-card::before { content: "\f2c2"; }
.fa-cart-plus::before { content: "\f217"; }
.fa-credit-card::before { content: "\f09d"; }
.fa-check::before { content: "\f00c"; }
.fa-paper-plane::before { content: "\f1d8"; }
.fa-file-lines::before { content: "\f15c"; }
.fa-store::before { content: "\f54e"; }
.fa-upload::before { content: "\f093"; }
.fa-inbox::before { content: "\f01c"; }
.fa-handshake::before { content: "\f2b5"; }
.fa-mobile-screen-button::before { content: "\f3cd"; }
.fa-lock::before { content: "\f023"; }
.fa-shield-halved::before { content: "\f3ed"; }
.fa-gift::before { content: "\f06b"; }
.fa-right-to-bracket::before { content: "\f2f6"; }
.fa-user-plus::before { content: "\f234"; }
.fa-wallet::before { content: "\f555"; }
.fa-money-bill-transfer::before { content: "\e528"; }
.fa-clipboard-list::before { content: "\f46d"; }
.fa-chart-line::before { content: "\f201"; }
.fa-gear::before { content: "\f013"; }
.fa-pen-to-square::before { content: "\f044"; }
.fa-star::before { content: "\f005"; }
.fa-camera::before { content: "\f030"; }
.fa-video::before { content: "\f03d"; }
.fa-sack-dollar::before { content: "\f81d"; }

.fa-solid,
.fa-solid::before {
  font-style: normal;
}

.auth-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 9px;
  width: calc(100% - 32px);
  max-width: 390px;
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  background: rgba(20, 24, 38, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 14px)) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(14px);
}

.auth-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.auth-toast-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4f72, #ffad35);
}

.auth-toast-icon::after {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  content: "!";
}

.auth-toast.success .auth-toast-icon {
  background: linear-gradient(135deg, #23d18b, #31a8ff);
}

.auth-toast.success .auth-toast-icon::after {
  content: "\2713";
}
