/* Body and Global Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(74, 144, 226, 0.9),
    rgba(51, 102, 255, 0.8),
    rgba(34, 16, 163, 0.6),
    rgba(70, 64, 255, 0.7),
    rgba(128, 102, 255, 0.5)
  );
}

/* Container with Glassmorphism */
.container {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px); /* Frosted glass effect */
  border-radius: 15px;
  padding: 35px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-out;
  text-align: left;
  font-weight: 900;
  position: relative; /* For positioning the circle image */
}

/* Circle Image (User Logo) */
.user-logo {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  color: #4a90e2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Heading */
h2 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
  color: #fff;
  text-align: center;
  margin-top: 5px;
}

/* Input fields */
input[type="password"],
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 10px 0 10px 10px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  margin: 0 0 10px;
  background: rgba(255, 255, 255, 0.4);
  color: #333;
  box-shadow: inset 4px 4px 8px rgba(255, 255, 255, 0.3),
    inset -4px -4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Input focus effect */
input[type="password"]:focus,
input[type="text"]:focus,
input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 4px 4px 8px rgba(255, 255, 255, 0.5),
    inset -4px -4px 8px rgba(0, 0, 0, 0.1), 0 0 8px rgba(74, 144, 226, 0.6);
  outline: none;
}

/* Submit Button */
button {
  width: 100%;
  padding: 12px;
  /* background: linear-gradient(135deg, #4a90e2, #357abd); */
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(74, 144, 226, 0.2);
  margin-top: 15px;
  background: linear-gradient(
    90deg,
    rgba(74, 144, 226, 0.9),
    rgba(51, 102, 255, 0.8),
    rgba(34, 16, 163, 0.6),
    rgba(70, 64, 255, 0.7),
    rgba(128, 102, 255, 0.5)
  );
  background-color: rgba(0, 0, 0, 0);
}

button:hover {
  background: linear-gradient(135deg, #357abd, #4a90e2);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
  transform: translateY(-3px);
}

button:focus {
  outline: none;
  box-shadow: 0 0 12px rgba(74, 144, 226, 0.4);
}

/* Error and Success Messages */
p {
  font-size: 14px;
  margin-top: 10px;
}

p.error {
  color: #e74c3c;
  background-color: rgba(255, 99, 71, 0.1);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(255, 99, 71, 0.15);
}

p.success {
  color: #000000;
  background-color: rgba(76, 175, 80, 0.1);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(76, 175, 80, 0.15);
}

/* Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .container {
    padding: 20px;
    max-width: 80dvw;
  }

  h2 {
    font-size: 1.5rem;
  }

  .user-logo {
    top: -50px;
    width: 80px;
    height: 80px;
    font-size: 40px;
  }
}

/* Go Back Button with Icon */
.go-back-btn {
  background-color: #357abd; /* Blue color */
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none; /* Remove underline from links */
  display: inline-flex; /* Flexbox for icon and text */
  align-items: center;
}

.go-back-btn i {
  margin-right: 8px; /* Space between icon and text */
  font-size: 18px; /* Icon size */
}

.go-back-btn:hover {
  background-color: #4a90e2; /* Lighter blue on hover */
  transform: scale(1.05); /* Slight zoom effect */
}

.go-back-btn:focus {
  outline: none;
}

.gbt-right {
  text-align: right;
}

/* =================================
create account 
================================= */
.create-account {
  margin-top: 20px;
  text-align: center;
}

.create-account a {
  color: #000000;
  text-decoration: none;
}

.create-account a:hover {
  text-decoration: underline;
}

/* =================================
register
================================= */
.login-link {
  text-align: center;
  margin-top: 15px;
}

.login-link a {
  color: #000000;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.modal-box h2 {
  color: #d9534f;
  margin-bottom: 15px;
}
.modal-box p {
  margin-bottom: 25px;
  color: black;
}
.modal-actions button {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.btn-cancel {
  background-color: #6c757d;
  color: white;
}
.btn-confirm {
  background-color: #d9534f;
  color: white;
}
.btn-confirm:hover,
.btn-cancel:hover {
  opacity: 0.9;
}
