
  .card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 24px;
    width: 100%;
    max-width: 420px;
  }

  .card h1 {
    font-size: 20px;
    color: #1a2b4a;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
  }

  .field { margin-bottom: 16px; }

  .field label {
    display: block;
    font-size: 13px;
    color: #6b7a99;
    margin-bottom: 6px;
    font-weight: 500;
  }

  .field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    border: 1.5px solid #d9e1ee;
    border-radius: 10px;
    outline: none;
    background: #f8fafd;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 0.5px;
  }

  .field input:focus {
    border-color: #2b6cb0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
  }

  .field input.invalid {
    border-color: #e53e3e;
    background: #fff5f5;
  }

  .error-text {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
  }

  .submit-btn {
    width: 100%;
    min-height: 52px;
    padding: 14px;
    background: linear-gradient(135deg, #2b6cb0, #2c5282);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 8px;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.1s, box-shadow 0.2s, opacity 0.2s;
  }

  @media (hover: hover) {
    .submit-btn:hover:not(:disabled) {
      box-shadow: 0 6px 18px rgba(43, 108, 176, 0.35);
    }
  }

  .submit-btn:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(43, 108, 176, 0.3);
  }

  .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 50, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
    padding-top: calc(16px + env(safe-area-inset-top));
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    animation: fade 0.2s ease;
  }
  .overlay.show { display: flex; }

  .modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: pop 0.25s ease;
  }

  .modal .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fee2e2;
    color: #e53e3e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 16px;
  }

  .modal h2 {
    font-size: 18px;
    color: #1a2b4a;
    margin-bottom: 8px;
  }

  .modal p {
    color: #6b7a99;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .modal button {
    min-height: 48px;
    padding: 12px 28px;
    background: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    width: 100%;
  }

  .modal button:active {
    transform: scale(0.98);
    background: #2c5282;
  }

  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  @media (max-width: 360px) {
    .card { padding: 20px 16px; }
    .card h1 { font-size: 18px; }
  }

  @media (max-height: 500px) and (orientation: landscape) {
    .overlay { align-items: flex-start; padding-top: 20px; }
  }