    body {
      margin: 0;
      padding: 32px 18px;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: #f4f7fb;
      color: #1e293b;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    .login-container {
      background: #ffffff;
      border-radius: 16px;
      padding: 36px 32px;
      box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
      max-width: 460px;
      width: 100%;
      border: 1px solid rgba(148, 163, 184, 0.24);
    }

    .login-header {
      text-align: center;
      margin-bottom: 18px;
    }

    .login-container h2 {
      color: #0f172a;
      font-size: 1.7rem;
      font-weight: 700;
      line-height: 1.2;
      margin: 0;
    }

    .login-container h3 {
      color: #334155;
      font-size: 1.12rem;
      font-weight: 600;
      line-height: 1.3;
      margin: 8px 0 0;
    }

    .login-subtitle {
      color: #64748b;
      font-size: 0.95rem;
      line-height: 1.45;
      margin: 10px 0 0;
    }

    .login-actions {
      margin: 18px 0 20px;
      text-align: center;
    }

    .field-group {
      margin-bottom: 16px;
    }

    .login_form label {
      font-weight: 600;
      color: #334155;
      display: block;
      margin-bottom: 6px;
      font-size: 0.95rem;
    }

    .field-hint {
      color: #64748b;
      font-size: 0.86rem;
      line-height: 1.4;
      margin: 7px 0 0;
    }

    .login_form input {
      width: 100%;
      min-height: 48px;
      padding: 12px 14px;
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      background: #ffffff;
      color: #0f172a;
      margin-bottom: 0;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
      font-size: 16px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .login_form input:focus {
      outline: none;
      border-color: #0055aa;
      box-shadow: 0 0 0 3px rgba(0, 85, 170, 0.16);
    }

    .login_form input[aria-invalid="true"] {
      border-color: #be123c;
    }

    .submit {
      background: #0055aa;
      color: white;
      border: none;
      min-height: 50px;
      padding: 13px 16px;
      font-size: 16px;
      font-weight: 700;
      border-radius: 10px;
      cursor: pointer;
      width: 100%;
      box-shadow: 0 10px 20px rgba(0, 85, 170, 0.22);
      transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .submit:hover {
      transform: translateY(-1px);
      background: #00458a;
      box-shadow: 0 12px 24px rgba(0, 85, 170, 0.26);
    }

    .submit:focus-visible {
      outline: 3px solid rgba(0, 85, 170, 0.28);
      outline-offset: 2px;
    }

    .login-links {
      text-align: center;
      margin-top: 18px;
      display: grid;
      gap: 8px;
    }

    .login-links a {
      color: #0055aa;
      text-decoration: none;
      display: block;
      line-height: 1.35;
      padding: 7px 8px;
      border-radius: 8px;
    }

    .login-links a:hover,
    .login-links a:focus-visible {
      background: #eff6ff;
      text-decoration: underline;
    }

    .login-links a.recover {
      color: #00458a;
      font-weight: 700;
    }

    .login-alert,
    p.error {
      border-radius: 10px;
      font-size: 0.94rem;
      line-height: 1.45;
      margin: 14px 0 18px;
      padding: 12px 14px;
      text-align: left;
    }

    .login-alert-error,
    p.error {
      background: #fff1f2;
      border: 1px solid rgba(190, 18, 60, 0.22);
      color: #9f1239;
    }

    .login-alert-success {
      background: #ecfdf5;
      border: 1px solid rgba(4, 120, 87, 0.2);
      color: #047857;
    }

    .login-alert-info,
    .login-alert-info_forgot {
      background: #eff6ff;
      border: 1px solid rgba(29, 78, 216, 0.18);
      color: #1d4ed8;
    }

    .popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.popup-content h2 {
  margin-top: 0;
}

.popup-content button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #0055aa;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

@media (max-width: 768px) {
  body {
    min-height: 100dvh;
    align-items: flex-start;
    padding: 24px 16px;
  }

  .login-container {
    width: 100%;
    max-width: 440px;
    padding: 28px 22px;
  }

  .login-container h2 {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .login-container h3 {
    font-size: 1.05rem;
  }

  .login-subtitle,
  .field-hint {
    font-size: 0.9rem;
  }

  .login_form label {
    font-size: 0.95rem;
  }

  .login_form input {
    min-height: 46px;
    font-size: 16px;
  }

  .submit {
    min-height: 48px;
    font-size: 1rem;
  }

  .login-links a {
    line-height: 1.35;
    padding: 8px 6px;
    overflow-wrap: anywhere;
  }

  .login-alert,
  p.error {
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  body {
    align-items: flex-start;
    padding: 16px 12px;
  }

  .login-container {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .login-container h2 {
    font-size: 1.3rem;
  }
}
