/* styles.css - Stripped down for video background only
   Visual theme for counselor login + reset pages and dashboard.
   Focus: clean card, high-contrast green accents, responsive layout.
*/

:root{
  --bg-green: #a9db93;
  --brand-green: #2e7d32;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Add a dark overlay for readability over the video */
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  overflow: hidden; /* Prevent scrolling on the page */
}

/* New Video Background Login Design */
#bg-video {
  position: fixed;
  right: -155px; /* Pushes the video to the right */
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  object-fit: cover;
}

.login-card {
  width: 100%;
  max-width: 400px;
  /* Frosted glass effect */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4); /* High opacity shadow */
  padding: 40px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-branding {
  text-align: center;
  margin-bottom: 5px; /* Further reduced space */
}

.logo-image {
  width: 230px;
  height: 122px;
  object-fit: cover;
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  margin-bottom: 20px; /* Adjusted for better separation from form */
}

.welcome-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-green);
  margin: 0 0 8px 0;
}

/* Form Styling */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Further reduced space between form elements */
}

.form-group {
  margin-bottom: 0; /* Removed extra margin */
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 18px;
  color: #9ca3af;
  font-size: 16px;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 15px 50px 15px 50px; /* Standard padding */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  color: #333;
  background: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.form-input::placeholder {
  color: #9ca3af;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}

.password-toggle:hover {
  color: var(--brand-green);
}

.submit-btn {
  background: var(--brand-green);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px; /* Reduced top margin */
  display: inline-flex; /* Changed to inline-flex */
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.submit-btn:hover {
  background: #1b5e20; /* Darker green */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

/* Forgot Password Link */
.forgot-password {
  text-align: center;
  margin-top: 15px; /* Reduced space */
}

.forgot-link {
  color: var(--brand-green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Alert Messages */
.alerts{ 
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.alert{ 
  padding:12px 16px; 
  border-radius:8px; 
  font-size:14px; 
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.alert.error{ 
  background:#fef2f2; 
  color:#dc2626; 
  border: 1px solid #fecaca;
}
.alert.success{ 
  background:#f0fdf4; 
  color:#16a34a; 
  border: 1px solid #bbf7d0;
}

@media (max-width: 480px) {
  .login-card {
    padding: 25px 20px;
    width: 100%;
  }
}

.logo-link {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.logo-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}