/*Page1.css*/

/* Login Page Background - Applied to the page wrapper */
.login-page-wrapper {
  background-image: url('./components/campus.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Main Wrapper Card */
.wrapper {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px 35px;
  color: #212121;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo Image */
.responsive-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

/* Heading */
.wrapper h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-red);
  letter-spacing: -0.5px;
}

/* Input box styling */
.input-box {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.input-box input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  font-size: 15px;
  color: #212121;
  background-color: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 24px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-box input:focus {
  background-color: #ffffff;
  border-color: #B7202E;
  box-shadow: 0 0 0 4px rgba(183, 32, 46, 0.1);
}

.input-box input::placeholder {
  color: #757575;
}

.input-box .icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #757575;
  pointer-events: none;
}

.input-box input:focus + .icon {
  color: #B7202E;
}

/* Remember me & Forgot password */
.remember-forget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.remember-forget label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #424242;
  cursor: pointer;
}

.remember-forget label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #B7202E;
  cursor: pointer;
}

.remember-forget a {
  color: #B7202E;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.remember-forget a:hover {
  color: #8a1a24;
  text-decoration: underline;
}

.remember-forget a pre {
  margin: 0;
  font-family: inherit;
  font-size: 14px;
}

/* Error Message */
#error-message {
  background-color: #fff5f5;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #c0392b;
  margin-bottom: 20px;
  font-size: 14px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Submit button styling */
input[type="submit"],
.btn-outline-danger {
  width: 100%;
  background: linear-gradient(135deg, #B7202E, #8a1a24);
  border: none;
  border-radius: 24px;
  padding: 15px 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="submit"]:hover,
.btn-outline-danger:hover {
  background: linear-gradient(135deg, #8a1a24, #6d1219);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(183, 32, 46, 0.35);
}

input[type="submit"]:active,
.btn-outline-danger:active {
  transform: translateY(0);
}

/* Forgot password form styling */
.forgot-password-form {
  margin-top: 25px;
  padding: 25px;
  background-color: #f5f5f5;
  border-radius: 10px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.forgot-password-form h3 {
  color: #B7202E;
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.forgot-password-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  margin-bottom: 15px;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.forgot-password-form input:focus {
  border-color: #B7202E;
}

.forgot-password-form button {
  width: 100%;
  background: linear-gradient(135deg, #B7202E, #8a1a24);
  color: #ffffff;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.forgot-password-form button:hover {
  background: linear-gradient(135deg, #8a1a24, #6d1219);
  transform: translateY(-2px);
}

/* Cancel button styling for reset form */
/* Cancel button styling for reset form */
#cancel-reset-password {
  background-color: #e0e0e0;
  color: #424242;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  transition: all 0.3s ease;
}

#cancel-reset-password:hover {
  background-color: #757575;
  color: #ffffff;
}

/* Google Login Section */
.google-login {
  margin-top: 25px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  position: relative;
}

.google-login::before {
  content: 'Or continue with';
  display: block;
  font-size: 13px;
  color: #757575;
  background: white;
  width: fit-content;
  margin: 0 auto 15px;
  padding: 0 15px;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .login-page-wrapper {
    padding: 15px;
  }

  .wrapper {
    padding: 30px 25px;
  }

  .wrapper h2 {
    font-size: 22px;
  }

  .input-box input {
    padding: 14px 45px 14px 16px;
    font-size: 14px;
  }

  .remember-forget {
    flex-direction: column;
    align-items: flex-start;
  }
}
  