/* ======================= login.css ======================= */
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: url('download.jpg') no-repeat center center/cover;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-card {
  background: rgba(17, 17, 17, 0.95);
  border-radius: 24px;
  padding: 60px 40px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2 {
  text-align: center;
  margin-bottom: 32px;
  color: #e10600;
  font-size: 28px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #9ca3af;
  font-size: 14px;
  align-self: flex-start;
}

input {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid #333;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

button {
  width: 100%;
  padding: 14px;
  background: #e10600;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  opacity: 0.9
}

.note {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #6b7280;
}

/* ================= MODAL POPUP ================= */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: 300;
  color: #9ca3af;
  cursor: pointer;
  transition: 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  color: #e10600;
  transform: rotate(90deg);
}

.modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
  font-weight: 600;
}

.modal-content p {
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, #e10600, #c00000);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.3);
  transition: 0.2s ease;
  width: auto;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(225, 6, 0, 0.4);
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {
  .login-card {
    padding: 40px 30px;
    width: 350px;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  input,
  button {
    padding: 12px;
    font-size: 15px;
  }

  .modal-content {
    padding: 2rem;
    max-width: 380px;
  }

  .modal-content h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 24px;
    width: 320px;
  }

  h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  input,
  button {
    padding: 11px;
    font-size: 14px;
  }

  .modal-content {
    padding: 1.8rem;
    max-width: 90%;
  }

  .modal-content h3 {
    font-size: 1.3rem;
  }

  .modal-content p {
    font-size: 0.95rem;
  }
}