
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    }

    body {
      background: #0a0a0a;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 16px;
      background-image: radial-gradient(circle at 30% 20%, #141414 0%, #060606 90%);
    }

    .container {
      width: 100%;
      max-width: 380px;
      position: relative;
      min-height: 300px;
    }

    .page {
      background: #111111;
      border-radius: 20px;
      padding: 24px 20px 18px;
      box-shadow: 0 30px 70px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.02);
      width: 100%;
      position: relative;
      will-change: transform, opacity;
    }

    .page.hidden {
      display: none;
    }

    /* === МАКСИМАЛЬНО ПЛАВНЫЕ ПЕРЕХОДЫ === */
    .page-enter {
      animation: fadeScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .page-exit {
      animation: fadeOut 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes fadeScale {
      0% {
        opacity: 0;
        transform: scale(0.94) translateY(20px);
        filter: blur(8px);
      }
      40% {
        filter: blur(2px);
      }
      100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
      }
    }

    @keyframes fadeOut {
      0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
      }
      100% {
        opacity: 0;
        transform: scale(0.96) translateY(-12px);
        filter: blur(6px);
      }
    }

    /* === ПОЯВЛЕНИЕ ЭЛЕМЕНТОВ С ЗАДЕРЖКОЙ === */
    .item {
      opacity: 0;
      transform: translateY(18px) scale(0.97);
      transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .item.visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    .item-delay-1 { transition-delay: 0.05s; }
    .item-delay-2 { transition-delay: 0.12s; }
    .item-delay-3 { transition-delay: 0.19s; }
    .item-delay-4 { transition-delay: 0.26s; }

    /* === СТРЕЛКА НАЗАД === */
    .back-top {
      position: absolute;
      top: 16px;
      left: 16px;
      color: #6a6a6a;
      font-size: 20px;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      background: none;
      border: none;
      padding: 6px 10px;
      z-index: 5;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .back-top:hover {
      color: #e0e0e0;
      transform: translateX(-5px) scale(1.05);
    }

    .back-top i {
      font-size: 20px;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .back-top:hover i {
      transform: rotate(-12deg) scale(1.08);
    }

    .brand {
      text-align: center;
      margin-bottom: 18px;
      padding-top: 2px;
    }

    .brand h1 {
      font-weight: 600;
      font-size: 21px;
      letter-spacing: -0.2px;
      color: #f0f0f0;
      background: linear-gradient(135deg, #f5f5f5, #b8b8b8);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      background-size: 200% auto;
      animation: shimmer 6s ease-in-out infinite;
    }

    @keyframes shimmer {
      0%, 100% { background-position: 0% center; }
      50% { background-position: 100% center; }
    }

    .field {
      position: relative;
    }

    .field input[type="email"] {
      width: 100%;
      padding: 15px 16px 15px 44px;
      background: #161616;
      border: 2px solid #262626;
      border-radius: 16px;
      font-size: 15px;
      color: #f0f0f0;
      outline: none;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      font-weight: 450;
      box-shadow: inset 0 4px 10px rgba(0,0,0,0.3);
    }

    .field input[type="email"]:focus {
      border-color: #ffffff;
      background: #1a1a1a;
      box-shadow: 0 0 0 4px rgba(255,255,255,0.03), inset 0 4px 10px rgba(0,0,0,0.4);
      transform: scale(1.006);
    }

    .field input[type="email"]::placeholder {
      color: #484848;
      font-weight: 400;
      transition: opacity 0.4s ease;
    }

    .field input:focus::placeholder {
      opacity: 0.5;
    }

    .field .icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #4a4a4a;
      font-size: 15px;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none;
      width: 16px;
      text-align: center;
    }

    .field input:focus ~ .icon {
      color: #ffffff;
      transform: translateY(-50%) scale(1.1);
    }

    .code-grid {
      display: flex;
      gap: 8px;
      justify-content: center;
    }

    .code-slot {
      width: 48px;
      height: 58px;
      background: #161616;
      border: 2px solid #262626;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: 600;
      color: #f0f0f0;
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: inset 0 4px 10px rgba(0,0,0,0.3);
      caret-color: transparent;
      outline: none;
      text-align: center;
      letter-spacing: 0;
    }

    .code-slot:focus {
      border-color: #ffffff;
      background: #1a1a1a;
      box-shadow: 0 0 0 4px rgba(255,255,255,0.03), inset 0 4px 10px rgba(0,0,0,0.4);
      transform: scale(1.04) translateY(-2px);
    }

    .code-slot.correct {
      border-color: #5ae05a;
      background: #1a2a1a;
      box-shadow: 0 0 30px rgba(90, 224, 90, 0.12);
      animation: popCorrect 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .code-slot.wrong {
      border-color: #ff6b6b;
      background: #2a1a1a;
      box-shadow: 0 0 30px rgba(255, 107, 107, 0.12);
      animation: shake 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes popCorrect {
      0% { transform: scale(0.8); opacity: 0.7; }
      45% { transform: scale(1.12) rotate(-2deg); opacity: 1; }
      75% { transform: scale(0.96) rotate(1deg); }
      100% { transform: scale(1) rotate(0); opacity: 1; }
    }

    @keyframes shake {
      0% { transform: translateX(0) rotate(0); }
      15% { transform: translateX(-8px) rotate(-2.5deg); }
      30% { transform: translateX(8px) rotate(2.5deg); }
      45% { transform: translateX(-5px) rotate(-1.5deg); }
      60% { transform: translateX(5px) rotate(1.5deg); }
      80% { transform: translateX(-2px) rotate(-0.5deg); }
      100% { transform: translateX(0) rotate(0); }
    }

    .hidden-input {
      position: absolute;
      opacity: 0;
      width: 1px;
      height: 1px;
      pointer-events: none;
    }

    .actions {
      margin-top: 1px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .btn {
      background: #ffffff;
      border: none;
      padding: 15px 18px;
      border-radius: 16px;
      font-weight: 600;
      font-size: 15px;
      color: #0b0b0b;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 4px 20px rgba(255,255,255,0.02);
      letter-spacing: 0.2px;
      width: 100%;
      position: relative;
      overflow: hidden;
    }

    .btn::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15), transparent 70%);
      opacity: 0;
      transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .btn:hover::after {
      opacity: 1;
    }

    .btn:hover {
      background: #f2f2f2;
      transform: scale(0.98) translateY(-1px);
      box-shadow: 0 8px 30px rgba(255,255,255,0.05);
    }

    .btn:active {
      transform: scale(0.93) translateY(0);
    }

    .btn i {
      font-size: 15px;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .btn:hover i {
      transform: translateX(4px) scale(1.08);
    }

    .btn.loading {
      pointer-events: none;
      opacity: 0.8;
    }

    .btn.loading .btn-text {
      opacity: 0;
      transform: scale(0.8);
    }

    .btn.loading .btn-icon {
      opacity: 0;
      transform: scale(0.5) rotate(90deg);
    }

    .btn .spinner {
      position: absolute;
      width: 22px;
      height: 22px;
      border: 3px solid rgba(11, 11, 11, 0.08);
      border-top-color: #0b0b0b;
      border-radius: 50%;
      opacity: 0;
      transform: scale(0.5);
      transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .btn.loading .spinner {
      opacity: 1;
      transform: scale(1);
      animation: spin 0.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg) scale(1); }
      100% { transform: rotate(360deg) scale(1); }
    }

    .btn .btn-text,
    .btn .btn-icon {
      transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .status {
      margin-top: 10px;
      font-size: 13px;
      font-weight: 450;
      min-height: 18px;
      padding: 0 4px;
      letter-spacing: 0.1px;
      text-align: center;
      transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .status.error {
      color: #ff7a7a;
      animation: statusShake 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .status.success {
      color: #7ae07a;
      animation: statusPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .status.info {
      color: #5a5a5a;
    }

    @keyframes statusShake {
      0%, 100% { transform: translateX(0); }
      20% { transform: translateX(-6px); }
      40% { transform: translateX(6px); }
      60% { transform: translateX(-4px); }
      80% { transform: translateX(4px); }
    }

    @keyframes statusPop {
      0% { transform: scale(0.85) translateY(4px); opacity: 0.4; }
      50% { transform: scale(1.06) translateY(-2px); opacity: 1; }
      100% { transform: scale(1) translateY(0); opacity: 1; }
    }

    .nav-bottom {
      display: flex;
      justify-content: center;
      margin-top: 10px;
      padding: 0 4px;
    }

    .nav-link {
      color: #4a4a4a;
      font-size: 13px;
      font-weight: 450;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      background: none;
      border: none;
      padding: 4px 8px;
      letter-spacing: 0.1px;
      display: flex;
      align-items: center;
      gap: 6px;
      position: relative;
    }

    .nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: 1px;
      background: #7a7a7a;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      transform: translateX(-50%);
    }

    .nav-link:hover:not(:disabled) {
      color: #c0c0c0;
      transform: translateY(-1px);
    }

    .nav-link:hover:not(:disabled)::after {
      width: 50%;
    }

    .nav-link:disabled {
      opacity: 0.4;
      cursor: default;
    }

    .nav-link:disabled::after {
      display: none;
    }

    .nav-link i {
      font-size: 13px;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-link:hover:not(:disabled) i {
      transform: rotate(180deg);
    }

    .timer-text-inline {
      color: #5a5a5a;
      font-size: 13px;
      font-weight: 450;
      font-variant-numeric: tabular-nums;
      min-width: 32px;
      text-align: center;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .timer-text-inline.ready {
      color: #4a4a4a;
    }

    @media (max-width: 480px) {
      body { padding: 12px; }
      .page { padding: 18px 14px 14px; border-radius: 16px; }
      .code-slot { width: 40px; height: 50px; font-size: 20px; border-radius: 14px; }
      .code-grid { gap: 6px; }
      .brand h1 { font-size: 19px; }
      .brand { margin-bottom: 14px; }
      .back-top { top: 10px; left: 10px; font-size: 18px; }
      .back-top i { font-size: 18px; }
      .btn { padding: 13px 16px; font-size: 14px; border-radius: 14px; }
      .field input[type="email"] { padding: 13px 14px 13px 40px; font-size: 14px; border-radius: 14px; }
      .field .icon { left: 14px; font-size: 14px; }
      .status { font-size: 12px; min-height: 16px; margin-top: 8px; }
      .nav-link { font-size: 12px; }
      .timer-text-inline { font-size: 12px; min-width: 28px; }
      .nav-bottom { margin-top: 8px; }
      .container { min-height: 270px; }
    }

    @media (max-width: 380px) {
      .page { padding: 14px 10px 12px; border-radius: 14px; }
      .code-slot { width: 34px; height: 44px; font-size: 17px; border-radius: 12px; }
      .code-grid { gap: 5px; }
      .brand h1 { font-size: 17px; }
      .brand { margin-bottom: 10px; }
      .back-top { top: 8px; left: 8px; font-size: 16px; }
      .back-top i { font-size: 16px; }
      .btn { padding: 11px 14px; font-size: 13px; border-radius: 12px; gap: 8px; }
      .field input[type="email"] { padding: 11px 12px 11px 36px; font-size: 13px; border-radius: 12px; }
      .field .icon { left: 12px; font-size: 13px; }
      .btn .spinner { width: 18px; height: 18px; border-width: 2.5px; }
      .status { font-size: 11px; min-height: 14px; margin-top: 6px; }
      .nav-link { font-size: 11px; padding: 2px 6px; }
      .timer-text-inline { font-size: 11px; min-width: 24px; }
      .nav-bottom { margin-top: 6px; }
      .container { min-height: 240px; }
      .actions { gap: 3px; }
    }

    @media (max-width: 350px) {
      .code-slot { width: 30px; height: 40px; font-size: 15px; }
      .code-grid { gap: 4px; }
      .page { padding: 12px 8px 10px; }
      .btn { padding: 10px 12px; font-size: 12px; }
    }
  