/*
Name: Aashis rawal
Student ID: 11211
University ID: 24071214
*/

/* Blur page (Desktop) */
.blur {
  filter: blur(6px);
  pointer-events: none;
}

/* Remove underline */
a {
  text-decoration: none;
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5000;
}

/* Modal box */
.modal-content {
  background: #222;
  width: 350px;
  padding: 25px;
  border-radius: 10px;
  color: #fff;
  position: relative;
}

/* Modal title */
.modal-content h2 {
  text-align: center;
  color: #0ff;
  margin: 0 0 10px;
}

/* Input spacing */
.modal-content input,
.modal-content button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  border: none;
}

/* Input style */
.modal-content input {
  outline: none;
}

/* Submit button */
.modal-content button {
  background: #0ff;
  font-weight: bold;
  cursor: pointer;
}

/* Close icon */
.close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  cursor: pointer;
}

/* Error message */
.modal-error {
  text-align: center;
  font-weight: 700;
  color: #ff5c5c;
  margin: 8px 0 0;
}

/* Success message */
.modal-success {
  text-align: center;
  font-weight: 700;
  color: #22c55e;
  margin: 8px 0 0;
}

/* Switch line */
.switch {
  margin-top: 12px;
  text-align: center;
}

/* Switch link */
.switch a {
  color: #0ff;
  cursor: pointer;
}

/*
   REMOVE BLUR ON MOBILE 
*/
@media (max-width: 900px){

  .blur{
    filter: none !important;
    pointer-events: auto !important;
  }

  .modal-content{
    width: 92%;
    max-width: 380px;
  }

  .modal-content input,
  .modal-content button{
    font-size: 16px; /* prevents iPhone zoom */
  }
}
