/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  width: 100%;
  font-family: "Inter", Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 20px;
  background-image: url(rsback.webp);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
}

/* Container */
.container {
  background: white;
  padding: 30px;
  width: 100%;
  height: fit-content;
  max-width: 430px;
  margin-top: 40px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 25px;
}

/* Form */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

form input:focus {
  border-color: black;
  outline: none;
}

form button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: black;
  color: white;
  font-size: 1.05rem;
  cursor: pointer;
  transition: 0.25s ease;
}

form button:hover {
  opacity: 0.85;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  z-index: 999;
  padding: 20px;
}

/* Popup Box */
.popup-box {
  background: #fff;
  padding: 30px 25px;
  border-radius: 14px;
  max-width: 350px;
  width: 100%;
  text-align: center;
  animation: fadeInUp 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.popup-box h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 600;
}

.popup-box p {
  margin-bottom: 22px;
  color: #555;
  font-size: 1rem;
}

.popup-box button {
  background: black;
  color: white;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.2s ease;
}

.popup-box button:hover {
  opacity: 0.85;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   RESPONSIVENESS  
   ========================================= */

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .container {
    padding: 22px;
    margin-top: 20px;
    border-radius: 10px;
  }

  h1 {
    font-size: 1.45rem;
    margin-bottom: 20px;
  }

  .popup-box {
    padding: 25px 20px;
    border-radius: 10px;
  }

  .popup-box h2 {
    font-size: 1.25rem;
  }
}

/* Larger Screens */
@media (min-width: 760px) {
  body {
    padding-top: 60px;
  }

  .container {
    max-width: 450px;
    padding: 40px;
  }

  h1 {
    font-size: 2rem;
  }
}
