/* -----------------------------
   Global reset and box-sizing
------------------------------ */
* {
  box-sizing: border-box;
}

html, body, #root {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eef2ff;
  position: relative;
  overflow: hidden;
}

/* -----------------------------
   Background illustration
------------------------------ */
.login-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.2), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(147,51,234,0.2), transparent 50%);
  z-index: 0;
}

/* -----------------------------
   Login page container
------------------------------ */
.login-page {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1; /* above background */
}

/* -----------------------------
   Login card
------------------------------ */
.login-card {
  width: 100%;
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  text-align: center;
  position: relative;
  z-index: 2;
  transition: transform 0.3s;
}

.login-card:hover {
  transform: translateY(-5px);
}

/* -----------------------------
   Header
------------------------------ */
.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #6366f1, #9333ea);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.login-header h2 {
  font-size: 28px;
  margin-bottom: 6px;
  color: #111;  /* Dark color so it’s visible */
}


.login-header p {
  color: #6b7280;
}

/* -----------------------------
   Form inputs
------------------------------ */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 14px 36px; 
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  background-color: #f9f9f9;
  box-sizing: border-box; 
  color: #111; /* text visible */
}

.input-group input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.input-group input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #9ca3af;
}

.eye-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6b7280;
}

/* -----------------------------
   Options (remember me / forgot password)
------------------------------ */
.login-options {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  align-items: center;
}

.login-options label {
  color: #111;      /* visible text */
  display: flex;
  align-items: center;
  gap: 6px;         /* space between checkbox and text */
  cursor: pointer;
}

.login-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6366f1; /* checkbox color on modern browsers */
}

.login-options a {
  color: #6366f1;
  text-decoration: none;
}

/* -----------------------------
   Button
------------------------------ */
.login-btn {
  margin-top: 10px;
  padding: 14px;
  background: linear-gradient(135deg, #6366f1, #9333ea);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.login-btn:hover {
  opacity: 0.9;
}

/* -----------------------------
   Register text
------------------------------ */
.register-text {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #111; /* Make sure text is visible */
}

.register-text a {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
}


/* -----------------------------
   Responsive: mobile
------------------------------ */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }

  .login-header h2 {
    font-size: 24px;
  }
}
<style>
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;
    text-align: center;
    width: 320px;
    z-index: 10000;
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

.popup p {
    font-size: 18px;
    color: #2e7d32;
    font-weight: 600;
}

.popup button {
    margin-top: 15px;
    padding: 8px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
</style>
