    :root {
      --brand: #ff6a2a;
      --brand-dark: #e74d0d;
      --brand-soft: #fff0e7;
      --ink: #172033;
      --muted: #707887;
      --line: #e7e3de;
      --surface-soft: #faf8f5;
      --success: #20a86b;
      --danger: #dd4d4d;
      --shadow: 0 30px 90px rgba(21, 29, 46, .16);
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      min-height: 100%;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: #f7f5f2;
      font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    body.modal-open {
      overflow: hidden;
    }

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

    button,
    input {
      font: inherit;
    }

    button,
    a,
    input {
      -webkit-tap-highlight-color: transparent;
    }

    svg {
      display: block;
    }

    .auth-shell {
      min-height: 100vh;
      display: grid;
      grid-template-columns: minmax(460px, 1.05fr) minmax(520px, .95fr);
      padding: 18px;
    }

    .brand-panel {
      position: relative;
      min-height: calc(100vh - 36px);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      padding: 46px clamp(38px, 5vw, 78px);
      border-radius: 28px;
      color: #fff;
      background:
        radial-gradient(circle at 20% 18%, rgba(255, 129, 70, .19), transparent 25%),
        radial-gradient(circle at 83% 72%, rgba(255, 106, 42, .13), transparent 27%),
        linear-gradient(145deg, #172033 0%, #202a3e 55%, #182135 100%);
      isolation: isolate;
    }

    .brand-panel::before,
    .brand-panel::after {
      content: "";
      position: absolute;
      z-index: -1;
      border: 1px solid rgba(255, 255, 255, .055);
      border-radius: 50%;
    }

    .brand-panel::before {
      top: -260px;
      right: -160px;
      width: 650px;
      height: 650px;
      box-shadow:
        0 0 0 60px rgba(255, 255, 255, .018),
        0 0 0 126px rgba(255, 255, 255, .013);
    }

    .brand-panel::after {
      bottom: -300px;
      left: -180px;
      width: 570px;
      height: 570px;
      box-shadow: 0 0 0 52px rgba(255, 255, 255, .014);
    }

    .brand {
      position: relative;
      z-index: 2;
      width: fit-content;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-weight: 830;
      letter-spacing: 0;
    }

    .brand-mark {
      width: 39px;
      height: 39px;
      display: grid;
      place-items: center;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      transform: none;
    }

    .brand-mark svg {
      width: 22px;
      height: 22px;
      transform: rotate(5deg);
    }

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

    .captcha-field {
      margin: 2px 0 20px;
    }

    .embed-captcha {
      min-height: 44px;
    }

    .submit-btn[disabled] {
      cursor: wait;
      opacity: .7;
      transform: none;
    }

    #telegram-login-box {
      display: flex;
      justify-content: center;
      margin-bottom: 16px;
    }

    .brand-name {
      display: flex;
      flex-direction: column;
      font-size: 19px;
      line-height: 1;
    }

    .brand-name small {
      margin-top: 6px;
      color: #929daf;
      font-size: 9px;
      font-weight: 730;
      letter-spacing: 0;
    }

    .brand-content {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 650px;
      margin: auto 0;
      padding: 70px 0;
    }

    .service-pill {
      width: fit-content;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 32px;
      padding: 0 12px;
      border: 1px solid rgba(255, 255, 255, .1);
      border-radius: 999px;
      color: #c5ccda;
      background: rgba(255, 255, 255, .045);
      font-size: 10px;
      font-weight: 720;
      letter-spacing: 0;
    }

    .service-pill i {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #44d493;
      box-shadow: 0 0 0 4px rgba(68, 212, 147, .11);
    }

    .brand-content h1 {
      max-width: 620px;
      margin: 24px 0 18px;
      font-size: 68px;
      font-weight: 860;
      line-height: 1.07;
      letter-spacing: 0;
    }

    .brand-content h1 span {
      color: #ff8f5a;
      background: linear-gradient(105deg, #ffa275, #ff7132);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .brand-content > p {
      max-width: 560px;
      margin: 0;
      color: #abb4c4;
      font-size: 15px;
      line-height: 1.85;
    }

    .network-card {
      position: relative;
      max-width: 570px;
      margin-top: 45px;
      padding: 17px;
      border: 1px solid rgba(255, 255, 255, .09);
      border-radius: 22px;
      background: rgba(255, 255, 255, .045);
      box-shadow: 0 22px 55px rgba(7, 11, 19, .18);
      backdrop-filter: blur(14px);
    }

    .network-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 3px 3px 16px;
    }

    .network-top strong {
      font-size: 12px;
    }

    .network-top span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #9faaba;
      font-size: 9px;
      font-weight: 680;
    }

    .network-top span i {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #44d493;
    }

    .network-route {
      display: grid;
      grid-template-columns: 39px 1fr auto;
      align-items: center;
      gap: 12px;
      padding: 12px;
      border: 1px solid rgba(255, 255, 255, .07);
      border-radius: 14px;
      background: rgba(255, 255, 255, .045);
    }

    .route-icon {
      width: 39px;
      height: 39px;
      display: grid;
      place-items: center;
      border-radius: 11px;
      color: #ff9d70;
      background: rgba(255, 106, 42, .11);
    }

    .route-icon svg {
      width: 19px;
      height: 19px;
    }

    .route-copy strong {
      display: block;
      font-size: 11px;
    }

    .route-copy small {
      display: block;
      margin-top: 1px;
      color: #8e99aa;
      font-size: 8px;
    }

    .route-metrics {
      display: flex;
      align-items: center;
      gap: 17px;
    }

    .route-metric span {
      display: block;
      color: #7f8a9b;
      font-size: 7px;
    }

    .route-metric strong {
      display: block;
      margin-top: 1px;
      color: #dce1e9;
      font-size: 10px;
    }

    .trust-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 9px;
      margin-top: 10px;
    }

    .trust-item {
      padding: 11px 12px;
      border: 1px solid rgba(255, 255, 255, .065);
      border-radius: 12px;
      color: #a3adbc;
      background: rgba(255, 255, 255, .032);
      font-size: 8px;
      font-weight: 680;
    }

    .trust-item strong {
      display: block;
      margin-bottom: 2px;
      color: #e7eaf0;
      font-size: 10px;
    }

    .panel-footer {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      color: #778396;
      font-size: 10px;
    }

    .panel-footer a {
      transition: color .2s ease;
    }

    .panel-footer a:hover {
      color: #ff9362;
    }

    .auth-panel {
      min-height: calc(100vh - 36px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 50px clamp(38px, 6vw, 96px);
    }

    .auth-card {
      width: min(100%, 470px);
      animation: cardIn .55s ease both;
    }

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

    .mobile-brand {
      display: none;
      margin-bottom: 48px;
      color: var(--ink);
    }

    .auth-kicker {
      color: var(--brand-dark);
      font-size: 11px;
      font-weight: 830;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .auth-card h2 {
      margin: 9px 0 8px;
      color: #172033;
      font-size: 44px;
      font-weight: 850;
      line-height: 1.18;
      letter-spacing: 0;
    }

    .auth-lead {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .login-form {
      margin-top: 35px;
    }

    .field {
      margin-bottom: 20px;
    }

    .field-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 8px;
    }

    .field-label {
      color: #394153;
      font-size: 12px;
      font-weight: 760;
    }

    .field-hint {
      color: #9a9faa;
      font-size: 10px;
    }

    .field-hint a {
      color: var(--brand-dark);
      font-weight: 720;
    }

    .input-wrap {
      position: relative;
    }

    .input-icon {
      position: absolute;
      top: 50%;
      left: 15px;
      width: 18px;
      height: 18px;
      color: #a1a6af;
      pointer-events: none;
      transform: translateY(-50%);
      transition: color .2s ease;
    }

    .input-wrap input {
      width: 100%;
      height: 53px;
      padding: 0 48px 0 46px;
      border: 1px solid #dfdbd6;
      border-radius: 14px;
      outline: none;
      color: #252e40;
      background: #fff;
      font-size: 14px;
      transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }

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

    .input-wrap input:focus {
      border-color: #ffad86;
      background: #fff;
      box-shadow: 0 0 0 4px rgba(255, 106, 42, .09);
    }

    .input-wrap:focus-within .input-icon {
      color: var(--brand);
    }

    .field-action {
      position: absolute;
      top: 50%;
      right: 11px;
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 0;
      border-radius: 10px;
      color: #999fa9;
      background: transparent;
      cursor: pointer;
      transform: translateY(-50%);
      transition: color .2s ease, background .2s ease;
    }

    .field-action:hover {
      color: var(--ink);
      background: #f5f2ef;
    }

    .field-action svg {
      width: 17px;
      height: 17px;
    }

    .remember-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin: 4px 0 24px;
    }

    .check-label {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #656d7c;
      cursor: pointer;
      font-size: 12px;
      user-select: none;
    }

    .check-label input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .check-box {
      width: 18px;
      height: 18px;
      display: grid;
      place-items: center;
      border: 1px solid #d6d1cb;
      border-radius: 6px;
      background: #fff;
      transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    }

    .check-box svg {
      width: 12px;
      height: 12px;
      color: #fff;
      opacity: 0;
      transform: scale(.6);
      transition: opacity .15s ease, transform .15s ease;
    }

    .check-label input:checked + .check-box {
      border-color: var(--brand);
      background: var(--brand);
      box-shadow: 0 4px 10px rgba(255, 106, 42, .19);
    }

    .check-label input:checked + .check-box svg {
      opacity: 1;
      transform: scale(1);
    }

    .check-label input:focus-visible + .check-box {
      box-shadow: 0 0 0 4px rgba(255, 106, 42, .1);
    }

    .forgot-link {
      color: var(--brand-dark);
      font-size: 12px;
      font-weight: 740;
    }

    .forgot-link:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .submit-btn {
      width: 100%;
      min-height: 54px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 0 20px;
      border: 0;
      border-radius: 15px;
      color: #fff;
      background: linear-gradient(135deg, #ff7c40, var(--brand));
      box-shadow: 0 13px 28px rgba(255, 106, 42, .26);
      cursor: pointer;
      font-size: 14px;
      font-weight: 790;
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .submit-btn:hover {
      box-shadow: 0 17px 35px rgba(255, 106, 42, .33);
      transform: translateY(-2px);
    }

    .submit-btn svg {
      width: 18px;
      height: 18px;
    }

    .divider {
      display: flex;
      align-items: center;
      gap: 13px;
      margin: 27px 0 18px;
      color: #aaadb4;
      font-size: 10px;
    }

    .divider::before,
    .divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--line);
    }

    .telegram-btn {
      width: 100%;
      min-height: 51px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 0 18px;
      border: 1px solid #dce6ef;
      border-radius: 14px;
      color: #2d5f82;
      background: #f8fbfd;
      cursor: pointer;
      font-size: 13px;
      font-weight: 760;
      transition: border-color .2s ease, background .2s ease, transform .2s ease;
    }

    .telegram-btn:hover {
      border-color: #bcd9ec;
      background: #f2f9fd;
      transform: translateY(-2px);
    }

    .telegram-btn svg {
      width: 20px;
      height: 20px;
      color: #279ed9;
    }

    .signup {
      margin: 27px 0 0;
      color: #777f8e;
      text-align: center;
      font-size: 12px;
    }

    .signup a {
      margin-left: 5px;
      color: var(--brand-dark);
      font-weight: 780;
    }

    .auth-security {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 34px;
      color: #a0a5ad;
      font-size: 9px;
    }

    .auth-security svg {
      width: 13px;
      height: 13px;
      color: var(--success);
    }

    .mobile-footer {
      display: none;
      margin-top: 42px;
      color: #a3a7ad;
      text-align: center;
      font-size: 9px;
    }

    .modal {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      place-items: center;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s ease, visibility .2s ease;
    }

    .modal.open {
      opacity: 1;
      visibility: visible;
    }

    .modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 21, 34, .58);
      backdrop-filter: blur(8px);
    }

    .modal-card {
      position: relative;
      width: min(100%, 445px);
      overflow: hidden;
      padding: 29px;
      border: 1px solid rgba(255, 255, 255, .72);
      border-radius: 24px;
      background: #fff;
      box-shadow: 0 34px 90px rgba(15, 21, 34, .26);
      transform: translateY(13px) scale(.98);
      transition: transform .24s ease;
    }

    .modal.open .modal-card {
      transform: translateY(0) scale(1);
    }

    .modal-card::after {
      content: "";
      position: absolute;
      top: -115px;
      right: -100px;
      width: 230px;
      height: 230px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(39, 158, 217, .12), transparent 69%);
      pointer-events: none;
    }

    .modal-close {
      position: absolute;
      z-index: 2;
      top: 17px;
      right: 17px;
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 12px;
      color: #6e7684;
      background: #faf9f7;
      cursor: pointer;
    }

    .modal-close svg {
      width: 17px;
      height: 17px;
    }

    .telegram-icon {
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      border-radius: 17px;
      color: #fff;
      background: linear-gradient(145deg, #42b8eb, #249bd6);
      box-shadow: 0 12px 25px rgba(39, 158, 217, .24);
    }

    .telegram-icon svg {
      width: 27px;
      height: 27px;
    }

    .modal-card h3 {
      margin: 20px 0 7px;
      font-size: 23px;
      letter-spacing: 0;
    }

    .modal-card > p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.75;
    }

    .bot-link {
      color: #2789bd;
      font-weight: 750;
    }

    .login-code {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 13px;
      margin: 22px 0 14px;
      padding: 14px 14px 14px 17px;
      border: 1px solid #dcebf3;
      border-radius: 15px;
      background: #f6fbfd;
    }

    .login-code span {
      display: block;
      color: #84919b;
      font-size: 9px;
    }

    .login-code strong {
      display: block;
      margin-top: 2px;
      color: #22384a;
      font-size: 24px;
      line-height: 1.2;
      letter-spacing: 0;
    }

    .copy-btn {
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0 12px;
      border: 1px solid #cde2ed;
      border-radius: 10px;
      color: #2879a3;
      background: #fff;
      cursor: pointer;
      font-size: 10px;
      font-weight: 750;
    }

    .copy-btn svg {
      width: 14px;
      height: 14px;
    }

    .modal-note {
      display: flex;
      align-items: flex-start;
      gap: 7px;
      color: #999fa8;
      font-size: 9px;
      line-height: 1.6;
    }

    .modal-note svg {
      width: 13px;
      height: 13px;
      flex: 0 0 auto;
      margin-top: 1px;
      color: var(--success);
    }

    .modal-actions {
      display: grid;
      grid-template-columns: 1fr 1.25fr;
      gap: 10px;
      margin-top: 22px;
    }

    .modal-btn {
      min-height: 46px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 15px;
      border: 1px solid var(--line);
      border-radius: 13px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 760;
    }

    .modal-btn.cancel {
      color: #616978;
      background: #fff;
    }

    .modal-btn.telegram {
      color: #fff;
      border-color: #289ed8;
      background: #289ed8;
      box-shadow: 0 10px 20px rgba(40, 158, 216, .2);
    }

    .modal-btn svg {
      width: 16px;
      height: 16px;
    }

    .toast {
      position: fixed;
      z-index: 120;
      bottom: 24px;
      left: 50%;
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 10px 14px;
      border-radius: 11px;
      color: #fff;
      background: #20293b;
      box-shadow: 0 15px 35px rgba(20, 28, 44, .23);
      opacity: 0;
      pointer-events: none;
      font-size: 11px;
      font-weight: 700;
      transform: translate(-50%, 12px);
      transition: opacity .2s ease, transform .2s ease;
    }

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

    .toast svg {
      width: 14px;
      height: 14px;
      color: #5fe0a5;
    }

    @media (max-width: 1100px) {
      .auth-shell {
        grid-template-columns: minmax(420px, .9fr) minmax(480px, 1.1fr);
      }

      .brand-panel {
        padding-inline: 44px;
      }

      .brand-content h1 {
        font-size: 58px;
      }

      .network-card {
        margin-top: 35px;
      }
    }

    @media (max-width: 900px) {
      body {
        background:
          radial-gradient(circle at 10% 8%, rgba(255, 188, 146, .23), transparent 25%),
          #f8f6f3;
      }

      .auth-shell {
        display: block;
        padding: 0;
      }

      .brand-panel {
        display: none;
      }

      .auth-panel {
        min-height: 100vh;
        padding: 46px 24px;
      }

      .mobile-brand {
        display: inline-flex;
      }

      .auth-card {
        max-width: 500px;
      }

      .mobile-footer {
        display: block;
      }
    }

    @media (max-width: 520px) {
      .auth-panel {
        align-items: flex-start;
        padding: 30px 20px 40px;
      }

      .mobile-brand {
        margin-bottom: 54px;
      }

      .brand-name small {
        display: none;
      }

      .auth-card h2 {
        font-size: 36px;
      }

      .login-form {
        margin-top: 31px;
      }

      .field {
        margin-bottom: 18px;
      }

      .remember-row {
        align-items: flex-start;
      }

      .modal-card {
        padding: 25px 21px;
        border-radius: 21px;
      }

      .modal-actions {
        grid-template-columns: 1fr;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
      }
    }
