:root {
  --bg: #eef3f7;
  --card: #fff;
  --text: #0f172a;
  --muted: #6b7280;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  color: var(--text);
  background: radial-gradient(
    120% 120% at 10% 0%,
    #5e8bff 0%,
    #3a5bff 40%,
    #2746d9 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: background 0.2s ease;
}
.frame {
  width: 100%;
  max-width: 1200px;
  background: #f7fbff;
  border: 1px solid #e7edf4;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.03) inset;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 22px;
  align-items: stretch;
}

.card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid #eef2f7;
  box-shadow: 0 6px 14px rgb(15 23 42 / 9%);
  padding: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: url("/assets/images/company-logos/file_00000000d54c61fa8e79e76c363e34ee.png");
  display: grid;
  background-size: cover;
  place-items: center;
  color: #fff;
  font-weight: 800;
}
.brand-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand-text b {
  color: #3a86ff;
}
h2.title {
  font-size: 28px;
  margin: 8px 0 4px;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.field {
  margin-bottom: 14px;
}
.label {
  display: block;
  font-size: 13px;
  margin: 0 0 6px;
}
.input {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  border: 1px solid #e6ebf2;
  background: #f7fafc;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
.input:focus {
  border: 1px solid #e6ebf2;
  box-shadow: 0 0 0 4px rgb(68 103 255 / 0%);
}
.input-group {
  position: relative;
}
.toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 0px solid #e7ecf4;
  display: grid;
  place-items: center;
  background: #eef3ff00;
  color: #5b6cff;
  cursor: pointer;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.link {
  color: #f43f5e;
  text-decoration: none;
  font-weight: 500;
}
.check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  appearance: none;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  cursor: pointer;
}
.check:checked {
  background: #4f46e5;
  border-color: #4f46e5;
}
.bar {
  height: 1px;
  background: #eef1f6;
  margin: 18px 0;
  position: relative;
}
.bar span {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 10px;
  color: #94a3b8;
  font-size: 11px;
}
.btn {
  height: 52px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #3aa0ff 0%, #4467ff 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.btn-telegram {
  height: 48px;
  border-radius: 10px;
  border: 1px solid #dbe4ff;
  background: #ffffff00;
  color: #1c80ff;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.foot {
  margin-top: 14px;
  font-size: 14px;
}
.foot a {
  color: #4f46e5;
  text-decoration: none;
}
.error {
  margin-top: 10px;
  font-size: 13px;
  color: #dc2626;
  display: none;
}

.hero {
  position: relative;
  background: radial-gradient(
    120% 120% at 10% 0%,
    #5e8bff 0%,
    #3a5bff 40%,
    #2746d9 100%
  );
  border-radius: 16px;
  padding: 45px 40px 28px;
  color: #ecf2ff;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(39, 70, 217, 0.25);
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 800;
}
.hero .u {
  text-decoration: auto !important;
}
.hero p {
  margin: 0 0 18px;
  color: #e6eaff;
}
.charts {
  margin-top: 14px;
  background: #2a45d9;
  border-radius: 14px;
  padding: 35px 15px 25px;
  box-shadow: 0 14px 22px rgba(7, 17, 72, 0.25);
}
.charts h6 {
  margin: 0 0 8px;
  color: #f5f7ff;
}
.legend {
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #eef2ff;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.lg-blue {
  background: #5dd1ff;
}
.lg-gray {
  background: #cbd5ff;
}
.chart-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  align-items: center;
}
.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.dots span {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}
.dots span.active {
  background: #fff;
}

.hero-col {
  order: 1;
}
.form-col {
  order: 2;
}

@media (max-width: 600px) {
  body {
    background: url(/assets/images/japan-6726466.jpg);
  }
}

@media (max-width: 991px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    display: none;
  }
  body {
    padding: 12px;
    backdrop-filter: blur(6px);
  }

  .frame {
    padding: 12px;
  }
  .form-col {
    order: 1;
  }
}

@media (max-width: 600px) {
  .frame {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .input {
    height: 60px;
  }

  .btn {
    height: 62px;
  }

  .btn-telegram {
    height: 58px;
  }
}

.captcha-wrap {
  margin-top: 10px;
  margin-bottom: 8px;
}
.captcha-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #f7fafc inset !important;
  box-shadow: 0 0 0px 1000px #f7fafc inset !important;
  -webkit-text-fill-color: black !important;
}

input:-moz-autofill {
  box-shadow: 0 0 0px 1000px #f7fafc inset !important;
  -moz-text-fill-color: black !important;
}
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: #111827;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-align: center;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.toast i {
  margin-right: 8px;
  font-size: 16px;
  vertical-align: -2px;
}
.tgme_widget_login.large button.tgme_widget_login_button {
  font-size: 16px;
  line-height: 20px;
  padding: 9px 21px 11px;
  border-radius: 20px;
  background-color: #54a9eb00;
  color: #3c8dff !important;
  font-weight: 600 !important;
}
.btn-telegram {
  height: 52px;
  border-radius: 10px;
  border: 1px solid #dbe4ff;
  background: #55a9ea;
  color: #1c80ff;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}
