
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html, body {
    height: 100%;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, #e8f1f8 0%, #cfe1ef 45%, #b6cfe2 100%);
    background-attachment: fixed;
    color: #333;
    -webkit-font-smoothing: antialiased;
  }

  /* лёгкий декоративный узор на фоне */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
      radial-gradient(circle at 18% 22%, rgba(255,255,255,.55) 0%, transparent 42%),
      radial-gradient(circle at 82% 78%, rgba(255,255,255,.35) 0%, transparent 46%);
    pointer-events: none;
  }

  .card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow:
      0 1px 2px rgba(16, 42, 67, .08),
      0 12px 40px rgba(16, 42, 67, .18);
    padding: 40px 40px 28px;
    animation: rise .45s cubic-bezier(.22, .8, .3, 1) both;
  }

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

  /* ---------- Логотип ---------- */
  .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
  }

  .logo svg {
    width: 62px;
    height: 62px;
    display: block;
  }

  /* ---------- Заголовки ---------- */
  .title {
    text-align: center;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .2px;
    color: #1f2d3d;
    margin-bottom: 6px;
  }

  .subtitle {
    text-align: center;
    font-size: 13px;
    color: #7b8a99;
    margin-bottom: 26px;
  }

  /* ---------- Блок ошибки ---------- */
  .error-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fdf0ef;
    border: 1px solid #f3c9c6;
    border-left: 4px solid #d93025;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 24px;
    animation: shake .5s .15s ease-in-out both;
  }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    40%      { transform: translateX(5px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(3px); }
  }

  .error-box .icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #d93025;
  }

  .error-title {
    font-size: 14px;
    font-weight: 600;
    color: #a01d13;
    margin-bottom: 4px;
  }

  .error-text {
    font-size: 12.5px;
    line-height: 1.55;
    color: #8c3a33;
  }

  .error-code {
    display: inline-block;
    margin-top: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    color: #a01d13;
    background: #f8dcd9;
    border-radius: 4px;
    padding: 3px 8px;
    letter-spacing: .3px;
  }

  /* ---------- Форма ---------- */
  .field {
    margin-bottom: 16px;
  }

  .field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #4a5b6b;
    margin-bottom: 7px;
    letter-spacing: .2px;
  }

  .field input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    font-size: 14px;
    font-family: inherit;
    color: #2c3e50;
    background: #f7fafc;
    border: 1px solid #d5dee6;
    border-radius: 6px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
  }

  .field input::placeholder {
    color: #a9b6c2;
  }

  .field input:focus {
    background: #fff;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, .16);
  }

  .field input:disabled {
    background: #f1f4f7;
    color: #9aa8b5;
    cursor: not-allowed;
    border-color: #e2e8ee;
  }

  /* ---------- Кнопка ---------- */
  .btn {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .3px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, #3d8fd6 0%, #1f6fbe 100%);
    box-shadow: 0 2px 6px rgba(31, 111, 190, .32);
    transition: filter .18s, transform .08s, box-shadow .18s;
  }

  .btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(31, 111, 190, .38);
  }

  .btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(31, 111, 190, .3);
  }

  /* ---------- Футер ---------- */
  .footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #edf1f5;
    text-align: center;
    font-size: 11.5px;
    color: #9aa8b5;
    line-height: 1.7;
  }

  /* ---------- Адаптив ---------- */
  @media (max-width: 440px) {
    .card { padding: 32px 24px 22px; border-radius: 8px; }
    .title { font-size: 19px; }
  }

