:root {
  --front-bg: #f3f6fb;
  --front-surface: #ffffff;
  --front-surface-soft: rgba(255, 255, 255, 0.76);
  --front-border: rgba(16, 24, 40, 0.08);
  --front-shadow: 0 18px 48px rgba(17, 24, 39, 0.1);
  --front-shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
  --front-text: #172033;
  --front-text-soft: #62708a;
  --front-title: #101828;
  --front-primary: #0f6fff;
  --front-primary-dark: #0a53c3;
  --front-success: #0f9d62;
  --front-danger: #db4d43;
}

body.front-shell {
  min-height: 100vh;
  color: var(--front-text);
  background:
    radial-gradient(circle at top right, rgba(15, 111, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, var(--front-bg) 54%, #edf2f8 100%);
}

.front-shell,
.front-shell * {
  box-sizing: border-box;
}

.front-page {
  width: 100%;
  min-height: 100vh;
  padding: 16px 16px 88px;
}

.front-card {
  background: var(--front-surface-soft);
  border: 1px solid var(--front-border);
  border-radius: 24px;
  box-shadow: var(--front-shadow-soft);
  backdrop-filter: blur(18px);
}

.front-card h1,
.front-card h2,
.front-card h3,
.front-card h4,
.front-card p {
  margin: 0;
}

.front-primary-btn,
.front-secondary-btn,
.front-light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.front-primary-btn {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--front-primary) 0%, var(--front-primary-dark) 100%);
  box-shadow: 0 14px 30px rgba(15, 111, 255, 0.28);
}

.front-secondary-btn {
  color: var(--front-primary);
  background: rgba(15, 111, 255, 0.08);
}

.front-light-btn {
  color: var(--front-text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 111, 255, 0.12);
}

.auth-shell .front-page {
  padding-top: 14px;
}

.auth-shell {
  --front-primary: #d70026;
  --front-primary-dark: #c30022;
  --front-border: rgba(0, 0, 0, 0.04);
  --front-shadow-soft: 0 16px 36px rgba(215, 0, 38, 0.08);
  background:
    linear-gradient(180deg, #f3f3f5 0%, #f7edf0 34%, #f4f4f7 100%);
}

.auth-shell .front-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 18px 44px;
}

.auth-nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 6px 0 10px;
}

.auth-nav-btn {
  width: 44px;
  height: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111;
}

.auth-nav-btn::before,
.auth-nav-btn::after {
  content: "";
  position: absolute;
}

.auth-nav-close::before,
.auth-nav-close::after {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #111;
}

.auth-nav-close::before {
  transform: rotate(45deg);
}

.auth-nav-close::after {
  transform: rotate(-45deg);
}

.auth-nav-more::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111;
  box-shadow: -8px 0 0 #111, 8px 0 0 #111;
}

.auth-nav-title {
  text-align: center;
  min-width: 0;
}

.auth-nav-title strong {
  display: block;
  color: #111;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.auth-nav-title span {
  display: block;
  margin-top: 4px;
  color: #7f8187;
  font-size: 12px;
}

.auth-lang-row {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 12px;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.auth-brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.auth-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f6fff, #123e9b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 10px 24px rgba(15, 111, 255, 0.22);
}

.auth-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-brand-text {
  min-width: 0;
}

.auth-brand-text strong {
  display: block;
  color: var(--front-title);
  font-size: 17px;
  line-height: 1.2;
}

.auth-brand-text span {
  display: block;
  margin-top: 3px;
  color: var(--front-text-soft);
  font-size: 12px;
}

.auth-shell .lang-box {
  float: none;
  width: auto;
  margin: 0;
  padding: 3px;
  border: 1px solid rgba(215, 0, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.auth-shell .lang-box span {
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 12px;
  color: #7f8187;
}

.auth-shell .lang-active {
  background: linear-gradient(135deg, var(--front-primary) 0%, var(--front-primary-dark) 100%) !important;
  color: #fff !important;
}

.brand-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 20px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(8, 48, 120, 0.96), rgba(16, 30, 72, 0.95)),
    linear-gradient(135deg, rgba(15, 111, 255, 0.14), transparent 55%);
  color: #fff;
  box-shadow: var(--front-shadow);
}

.auth-shell .brand-hero {
  padding: 24px 24px 20px;
  border-radius: 30px;
  background:
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 19%, transparent 20%),
    linear-gradient(135deg, #be0020 0%, #d70026 45%, #f10a31 100%);
  box-shadow: 0 18px 36px rgba(215, 0, 38, 0.22);
}

.brand-hero-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(124, 10, 26, 0.2);
  backdrop-filter: blur(10px);
}

.brand-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-hero::before,
.brand-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-hero::before {
  width: 180px;
  height: 180px;
  top: -90px;
  right: -70px;
}

.brand-hero::after {
  width: 120px;
  height: 120px;
  bottom: -60px;
  left: -24px;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.6px;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.9);
}

.brand-hero h1 {
  position: relative;
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.4px;
}

.auth-shell .brand-hero h1 {
  margin-top: 16px;
  font-size: 22px;
  letter-spacing: 0;
}

.auth-brand-copy,
.hero-copy {
  position: relative;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.auth-shell .auth-brand-copy {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.65;
}

.brand-hero-en {
  position: relative;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  letter-spacing: 0.6px;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-points,
.hero-actions,
.hero-metrics {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hero-points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-shell .hero-points {
  display: none;
}

.hero-point,
.hero-metric {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-point strong,
.hero-metric strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.hero-point span,
.hero-metric span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.hero-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-actions .front-light-btn,
.hero-actions .front-primary-btn {
  min-height: 46px;
}

.auth-panel {
  margin-top: 18px;
  padding: 22px 18px 20px;
}

.auth-shell .auth-panel {
  margin-top: 20px;
  padding: 26px 18px 20px;
  border-radius: 30px;
  background: rgba(249, 249, 250, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 32px rgba(29, 29, 31, 0.06);
}

.panel-caption {
  color: var(--front-text-soft);
  font-size: 12px;
  letter-spacing: 0.4px;
}

.auth-shell .panel-caption {
  display: none;
}

.panel-title {
  margin-top: 6px;
  color: var(--front-title);
  font-size: 24px;
  line-height: 1.25;
}

.auth-shell .panel-title {
  margin-top: 0;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  color: #111;
}

.panel-copy {
  margin-top: 10px;
  color: var(--front-text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.auth-shell .panel-copy {
  margin-top: 12px;
  text-align: center;
  color: #a3a3a8;
  font-size: 13px;
  line-height: 1.6;
}

.auth-form-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-shell .auth-form-grid {
  gap: 12px;
  margin-top: 22px;
}

.auth-field {
  display: block;
}

.auth-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--front-text);
  font-size: 13px;
  font-weight: 600;
}

.auth-shell .auth-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.auth-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-shell .auth-input-group {
  min-height: 62px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid #ececee;
  background: #fff;
  box-shadow: none;
}

.auth-input-group input {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: var(--front-text);
}

.auth-shell .auth-input-group input {
  font-size: 15px;
  color: #111;
}

.auth-input-group input::placeholder {
  color: #97a3b6;
}

.auth-shell .auth-input-group input::placeholder {
  color: #babac0;
}

.auth-input-group .icon-img,
.auth-input-group .auth-inline-icon,
.auth-input-group .auth-toggle-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-shell .auth-input-group .icon-img,
.auth-shell .auth-input-group .auth-inline-icon,
.auth-shell .auth-input-group .auth-toggle-icon {
  width: 20px;
  height: 20px;
  opacity: 0.36;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
  align-items: stretch;
}

.captcha-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #f0d4da;
  background: linear-gradient(180deg, rgba(255, 245, 246, 0.98), rgba(255, 238, 242, 0.98));
}

.captcha-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.captcha-row .auth-input-group {
  min-width: 0;
}

.auth-shell .auth-inline-action-active,
.auth-shell .auth-inline-action {
  color: #d70026;
}

.auth-shell .auth-inline-action {
  min-width: 72px;
  text-align: right;
}

.auth-shell .hero-badge {
  background: rgba(255, 255, 255, 0.18);
}

.auth-shell .hero-badge::before {
  background: #ffd3dc;
  box-shadow: 0 0 12px rgba(255, 211, 220, 0.88);
}

.auth-inline-action {
  color: var(--front-primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.auth-shell .auth-inline-action {
  color: var(--front-primary);
}

.auth-submit {
  margin-top: 18px;
}

.auth-shell .auth-submit {
  margin-top: 20px;
}

.auth-entry-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--front-text-soft);
  font-size: 13px;
}

.auth-shell .auth-entry-links {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ececee;
  font-size: 14px;
}

.auth-entry-links a {
  color: var(--front-text-soft);
}

.auth-shell .auth-entry-links a {
  color: #8c8c92;
}

.auth-shell .auth-entry-links a:first-child {
  color: var(--front-primary);
}

.auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--front-text-soft);
  font-size: 13px;
}

.auth-shell .auth-remember {
  display: none;
}

.auth-remember-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-remember-main input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.auth-auxiliary {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-shell .auth-auxiliary {
  display: none;
}

.auth-auxiliary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 111, 255, 0.05);
  border: 1px solid rgba(15, 111, 255, 0.08);
}

.auth-auxiliary-item strong {
  display: block;
  color: var(--front-title);
  font-size: 15px;
}

.auth-auxiliary-item span {
  display: block;
  margin-top: 4px;
  color: var(--front-text-soft);
  font-size: 12px;
}

.auth-auxiliary-item em {
  color: var(--front-primary);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.register-shell .panel-title {
  font-size: 22px;
}

.register-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.auth-shell .register-benefits {
  display: none;
}

.register-benefits .benefit {
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(15, 111, 255, 0.05);
  text-align: center;
}

.register-benefits .benefit strong {
  display: block;
  color: var(--front-title);
  font-size: 14px;
}

.register-benefits .benefit span {
  display: block;
  margin-top: 4px;
  color: var(--front-text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.front-agreement {
  margin-top: 16px;
}

.auth-shell .front-agreement {
  margin-top: 18px;
}

.front-agreement,
.front-agreement .check,
.front-agreement .check-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.front-agreement .check {
  margin-top: 0;
}

.auth-shell .front-agreement .check {
  justify-content: flex-start;
}

.front-agreement .check-in img {
  width: 18px;
  height: 18px;
}

.front-agreement span,
.front-agreement a {
  color: var(--front-text-soft);
  font-size: 12px;
}

.auth-shell .front-agreement span,
.auth-shell .front-agreement a {
  color: #9d9da4;
}

.auth-shell .front-primary-btn {
  min-height: 58px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d70026 0%, #e4002b 100%);
  box-shadow: 0 14px 24px rgba(215, 0, 38, 0.18);
  font-size: 16px;
  letter-spacing: 1px;
}

.auth-header-spacer {
  height: 4px;
}

.front-home {
  padding: 14px 14px 82px;
}

.front-home .brand-hero {
  margin-bottom: 16px;
}

.home-brand-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-brand-row .auth-brand-mark {
  width: 50px;
  height: 50px;
}

.home-brand-row .auth-brand-text strong {
  color: #fff;
}

.home-brand-row .auth-brand-text span {
  color: rgba(255, 255, 255, 0.7);
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.front-section {
  margin-top: 16px;
  padding: 18px 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  color: var(--front-title);
  font-size: 19px;
  line-height: 1.3;
}

.section-head span,
.section-head a {
  color: var(--front-text-soft);
  font-size: 12px;
}

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-item {
  display: block;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: rgba(15, 111, 255, 0.04);
  border: 1px solid rgba(15, 111, 255, 0.08);
}

.notice-item strong {
  display: block;
  color: var(--front-title);
  font-size: 14px;
  line-height: 1.5;
}

.notice-item span {
  display: block;
  margin-top: 6px;
  color: var(--front-text-soft);
  font-size: 12px;
}

.market-grid,
.service-grid,
.trust-grid {
  display: grid;
  gap: 12px;
}

.market-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.front-market-card {
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.front-market-card h3 {
  color: var(--front-title);
  font-size: 16px;
  line-height: 1.3;
}

.front-market-card p {
  margin-top: 5px;
  color: var(--front-text-soft);
  font-size: 12px;
}

.market-price {
  margin-top: 14px;
  color: var(--front-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.market-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.market-volume {
  color: var(--front-text-soft);
  font-size: 12px;
}

.market-change {
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: var(--front-success);
}

.service-grid,
.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-item,
.trust-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 111, 255, 0.04);
  border: 1px solid rgba(15, 111, 255, 0.06);
}

.service-item strong,
.trust-item strong {
  display: block;
  color: var(--front-title);
  font-size: 15px;
}

.service-item span,
.trust-item span {
  display: block;
  margin-top: 6px;
  color: var(--front-text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.front-banner-swiper,
.front-banner-swiper .swiper-wrapper,
.front-banner-slide {
  border-radius: 22px;
}

.front-banner-slide {
  overflow: hidden;
}

.front-banner-slide img {
  display: block;
  width: 100%;
  height: 172px;
  object-fit: cover;
}

.front-empty {
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 111, 255, 0.04);
  color: var(--front-text-soft);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 360px) {
  .front-home,
  .front-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-actions,
  .hero-points,
  .hero-metrics,
  .market-grid,
  .service-grid,
  .trust-grid,
  .register-benefits {
    grid-template-columns: 1fr;
  }

  .auth-entry-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-shell .auth-nav-title strong {
    font-size: 18px;
  }

  .auth-shell .brand-hero h1 {
    font-size: 20px;
  }
}
