/* ========== FORGOT PASSWORD STYLES ========== */
@font-face {
  font-family: "newFont";
  src: url("../fonts/CooperHewitt-Book.otf");
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: "newFont", Arial, sans-serif;
  background: url("../images/backg3.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
}
.auth-container {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forgot-password-container,
.forgot-container {
  background: rgba(255, 255, 255, 1);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forgot-password-container:hover,
.forgot-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card {
  padding: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  border-radius: 0;
  overflow: visible;
}

/* Header Styles */
.forgot-header {
  margin-bottom: 30px;
  text-align: center;
}

.forgot-header h1,
.forgot-header h2 {
  color: #fd2b2b;
  font-family: "newFont", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.forgot-header p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 400;
}

/* Form Styles */
.card__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(253, 43, 43, 0.3);
  border-radius: 12px;
  font-size: 16px;
  font-family: "newFont", sans-serif;
  background: rgba(255, 255, 255, 1);
  color: #333;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #fd2b2b;
  background: #fff;
  box-shadow: 0 0 15px rgba(253, 43, 43, 0.2);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: #999;
  font-style: italic;
}

/* Button Styles */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #fd2b2b, #ff6b6b);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: "newFont", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(253, 43, 43, 0.3);
  margin-top: 10px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e91e63, #fd2b2b);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(253, 43, 43, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #666, #888);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: "newFont", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 15px;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #333, #555);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Reset Password Specific Styles (improved) */
.reset_password {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch; /* allow full-width form controls */
  padding: 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.reset_password h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  color: #222;
  margin: 0;
}

.reset_password h1 .icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fd2b2b, #ff6b6b);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(253, 43, 43, 0.15);
}

.reset_password .help-text {
  color: #555;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

/* form layout inside reset box */
.reset_password .form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reset_password .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reset_password label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.reset_password .form-control {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  box-shadow: none;
  background: #fff;
}

.reset_password .form-control:focus {
  border-color: #fd2b2b;
  box-shadow: 0 6px 18px rgba(253, 43, 43, 0.08);
  transform: none;
}

/* password strength indicator hook */
.password-strength {
  height: 8px;
  border-radius: 6px;
  background: #eee;
  overflow: hidden;
}
.password-strength > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b6b, #fd2b2b);
  transition: width 300ms ease;
}

.reset_password .actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.reset_password .actions .btn-primary {
  flex: 1;
}

.reset_password .actions .btn-secondary {
  background: #f1f1f1;
  color: #333;
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 140px;
}

@media (min-width: 700px) {
  .reset_password {
    padding: 36px;
  }

  .reset_password .form-grid {
    flex-direction: row;
    gap: 16px;
  }

  .reset_password .form-grid .col {
    flex: 1;
  }
}

/* Alert Styles */
.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #c3e6cb;
  margin-bottom: 20px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(21, 87, 36, 0.1);
}

.alert-error {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #f5c6cb;
  margin-bottom: 20px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(114, 28, 36, 0.1);
}

/* Links */
.auth-link {
  color: #fd2b2b;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 15px;
}

.auth-link:hover {
  color: #e91e63;
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(253, 43, 43, 0.3);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

/* Loading Animation */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading .btn-primary {
  position: relative;
}

.loading .btn-primary::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-container {
    margin: 10px;
    padding: 30px 20px;
    min-height: calc(100vh - 20px);
  }

  .forgot-header h1,
  .forgot-header h2 {
    font-size: 1.8rem;
  }

  .forgot-header p {
    font-size: 1rem;
  }

  .form-control {
    padding: 12px;
    font-size: 14px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 14px;
  }

  .reset_password {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .auth-container {
    margin: 5px;
    padding: 20px 15px;
    border-radius: 15px;
  }

  .forgot-header h1,
  .forgot-header h2 {
    font-size: 1.6rem;
  }

  .form-control {
    padding: 10px;
    font-size: 14px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 15px;
    font-size: 13px;
  }

  .reset_password {
    padding: 25px 15px;
  }
}

/* Focus Accessibility */
.form-control:focus,
.btn-primary:focus,
.btn-secondary:focus,
.auth-link:focus {
  outline: 3px solid rgba(253, 43, 43, 0.3);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .auth-container {
    box-shadow: none;
    background: white;
    color: black;
  }

  .btn-primary,
  .btn-secondary {
    background: #333 !important;
    color: white !important;
  }
}
