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

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

body {
  font-family: Arial, sans-serif;
  background: #081b27;
}

.forgot-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #081b27;
}

.page-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
}

.forgot-center {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.back-button {
  position: absolute;
  top: 30px;
  left: 40px;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.forgot-card {
  width: min(400px, calc(100vw - 40px));
  max-width: 400px;
  padding: 32px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.forgot-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: rgba(16, 186, 203, 0.12);
  border-radius: 50%;
  color: #145267;
  font-size: 22px;
}

.forgot-card h1 {
  font-size: 24px;
  color: #145267;
  margin-bottom: 12px;
}

.forgot-card p {
  font-size: 14px;
  color: #5a6a78;
  line-height: 1.8;
  margin-bottom: 24px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0px;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 46%;
  transform: translateY(-50%);
  color: #a0a9b3;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 14px 45px 14px 45px;
  border-radius: 12px;
  border: 1px solid #e3e6ea;
  background: #f7f9fc;
  font-size: 14px;
  color: #253444;
}

.form-input:focus {
  outline: none;
  border-color: #10bacb;
  box-shadow: 0 0 0 3px rgba(16, 186, 203, 0.12);
}

.error-message {
  color: #d14343;
  font-size: 13px;
  margin-bottom: 12px;
}

.success-message {
  color: #28a745;
  font-size: 13px;
  margin-bottom: 12px;
}

.btn-reset {
  width: 100%;
  padding: 14px 0;
  margin-bottom: 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #10bacb 0%, #145267 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(16, 186, 203, 0.22);
}

.form-footer {
  font-size: 14px;
  color: #5a6a78;
  text-align: center;
  display: block;
  width: 100%;
  margin-top: 16px;
  margin-left: 40px;
}

.form-footer a {
  color: #145267;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 500px) {
  .forgot-card {
    padding: 28px 20px;
  }
}

/* Reset Password Page Styles */
.reset-password-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #081b27;
}

.reset-password-center {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.reset-password-card {
  width: min(500px, calc(100vw - 40px));
  max-width: 500px;
  padding: 32px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.reset-password-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: rgba(16, 186, 203, 0.12);
  border-radius: 50%;
  color: #145267;
  font-size: 22px;
}

.reset-password-card h1 {
  font-size: 24px;
  color: #145267;
  margin-bottom: 12px;
}

.reset-password-card p {
  font-size: 14px;
  color: #5a6a78;
  line-height: 1.8;
  margin-bottom: 24px;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 45%;
  transform: translateY(-50%);
  color: #a0a9b3;
  font-size: 16px;
  cursor: pointer;
  z-index: 1;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #145267;
}

.btn-save {
  width: 100%;
  padding: 14px 0;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #10bacb 0%, #145267 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 20px;
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(16, 186, 203, 0.22);
}

@media (max-width: 500px) {
  .reset-password-card {
    padding: 28px 20px;
  }
}

/* Verify Reset Page Styles */
.verify-reset-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #081b27;
}

.verify-reset-center {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.verify-reset-card {
  width: min(440px, calc(100vw - 40px));
  max-width: 440px;
  padding: 32px 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.verify-reset-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: rgba(16, 186, 203, 0.12);
  border-radius: 50%;
  color: #145267;
  font-size: 22px;
}

.verify-reset-card h1 {
  font-size: 24px;
  color: #145267;
  margin-bottom: 12px;
}

.verify-reset-card p {
  max-width: 380px;
  margin: 0 auto;
  font-size: 14px;
  color: #5a6a78;
  line-height: 1.8;
  text-align: justify;
  text-indent: 16px;
}

.forgot-card p {
  font-size: 14px;
  color: #5a6a78;
  line-height: 1.8;
  text-align: justify;
  text-indent: 16px;
}

.field-hint {
  display: block;
  font-size: 13px;
  color: #5a6a78;
  line-height: 1.5;
  text-align: left;
  margin-top: 10px;
  margin-bottom: -5px;
  padding-left: 4px;
  padding-right: 4px;
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.otp-input {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid #e3e6ea;
  background: #f7f9fc;
  text-align: center;
  font-size: 20px;
  color: #253444;
  outline: none;
}

.otp-input:focus {
  border-color: #10bacb;
  box-shadow: 0 0 0 3px rgba(16, 186, 203, 0.12);
}

.timer-section {
  margin-bottom: 22px;
}

#timer-text {
  font-size: 13px;
  color: #5a6a78;
  padding-left: 190px;
}

.btn-verify-reset {
  width: 100%;
  padding: 14px 0;
  margin-bottom: 40px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #10bacb 0%, #145267 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-verify-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(16, 186, 203, 0.22);
}

.resend-text {
  display: block;
  width: 100%;
  margin: 0 auto 0;
  padding-left: 43px;
  font-size: 13px;
  color: #5a6a78;
  text-align: center;
}

.resend-text a {
  color: #145267;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 500px) {
  .verify-reset-card {
    padding: 28px 20px;
  }

  .otp-grid {
    gap: 8px;
  }

  .otp-input {
    min-height: 50px;
    font-size: 18px;
  }
}