* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: white;
  background: #071f66;
}

.forgot-page {
  min-height: 100vh;
  background: url("../../IMAGES/introbg.png") no-repeat center center /
    cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

.forgot-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 26, 88, 0.22),
    rgba(5, 10, 55, 0.26)
  );
}

.forgot-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  background: rgba(8, 22, 80, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 30px 24px;
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.forgot-logo {
  display: block;
  width: 85px;
  margin: 0 auto 16px;
}

.forgot-card h1 {
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 10px;
}

.subtext {
  text-align: center;
  font-size: 16px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.85);
}

.forgot-card form {
  display: flex;
  flex-direction: column;
}

.forgot-card label {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 12px;
}

.forgot-card input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(180, 198, 236, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 16px;
  outline: none;
}

.forgot-card input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.main-btn {
  margin-top: 22px;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(to right, #5c74ff, #4d66ea);
  color: white;
}

.links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.links a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.inline-form {
  display: inline-flex;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: white;
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.account-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(180, 198, 236, 0.55);
  background: rgba(255, 255, 255, 0.12);
  font-size: 16px;
  cursor: pointer;
}

.account-option input[type="radio"] {
  width: auto;
  accent-color: #5c74ff;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  width: 90%;
  max-width: 420px;
  padding: 28px 22px;
  border-radius: 20px;
  text-align: center;
  color: white;
}

.popup-box.success {
  background: linear-gradient(
    to bottom,
    rgba(16, 160, 80, 0.95),
    rgba(8, 100, 50, 0.95)
  );
}

.popup-box.error {
  background: linear-gradient(
    to bottom,
    rgba(220, 70, 70, 0.95),
    rgba(140, 20, 20, 0.95)
  );
}

.popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
}

.popup-box h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.popup-box p {
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .forgot-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .forgot-card h1 {
    font-size: 28px;
  }

  .links {
    flex-direction: column;
  }
}
