.login-main {
  padding: 2.5rem 1rem 6rem 1rem;
  background: var(--bg);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

.login-container {
  width: 100%;
  max-width: 450px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--border);
  padding: 2.5rem 2rem;
}

.login-container h1 {
  margin: 0 0 0.75rem 0;
  color: var(--text);
  text-align: center;
  font-size: 2rem;
}

.login-description {
  color: var(--muted-text);
  text-align: center;
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 0.75rem 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Prevent autofill from changing background color */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  background-color: var(--input-bg) !important;
  border: 1px solid var(--input-border);
}

.form-group input:-webkit-autofill:focus {
  border-color: var(--primary) !important;
}

/* Remember Me Checkbox */
.remember-me-container {
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.remember-me-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
  user-select: none;
}

.remember-me-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.remember-me-label span {
  color: var(--text);
  font-weight: 400;
}

.remember-me-label:hover span {
  color: var(--primary);
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  transition: color 0.2s ease;
  z-index: 10;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle:focus {
  outline: none;
  color: var(--primary);
}

.toggle-icon {
  width: 20px;
  height: 20px;
  user-select: none;
  pointer-events: none;
  color: #f5f5f5;
}

.toggle-icon-show,
.toggle-icon-hide {
  color: #f5f5f5;
}

/* Error Message */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-align: center;
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(90deg, var(--header-bg) 0%, var(--primary) 100%);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(90deg, var(--primary) 0%, var(--header-bg) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.signup-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--muted-text);
}

.signup-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password-link {
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.forgot-password-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.forgot-password-link a:hover {
  text-decoration: underline;
}

/* Change Password Modal */
.account-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.contact-support-modal {
  z-index: 2100;
}

.account-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.account-modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  border: 2px solid var(--border);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.account-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border);
}

.account-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text);
  font-weight: 600;
}

.account-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.account-modal-close:hover {
  background: var(--border);
  color: var(--primary);
}

.account-modal-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-settings-option {
  background: var(--input-bg);
  color: var(--text);
  border: 2px solid var(--input-border);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: inherit;
}

.account-settings-option:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateX(4px);
}

.account-settings-option:active {
  transform: translateX(2px);
}

/* Contact Support Form Styles */
.contact-support-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-support-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-support-form label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-support-form input,
.contact-support-form select,
.contact-support-form textarea {
  background: var(--input-bg);
  color: var(--text);
  border: 2px solid var(--input-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.contact-support-form input:focus,
.contact-support-form select:focus,
.contact-support-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Prevent autofill from changing background color in modal forms */
.contact-support-form input:-webkit-autofill,
.contact-support-form input:-webkit-autofill:hover,
.contact-support-form input:-webkit-autofill:focus,
.contact-support-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  background-color: var(--input-bg) !important;
  border: 2px solid var(--input-border);
}

.contact-support-form input:-webkit-autofill:focus {
  border-color: var(--primary) !important;
}

.contact-support-form #changePasswordSubmitBtn {
  margin-top: 0.5rem;
  width: 100%;
}

/* Change Password Description */
.change-password-description {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  text-align: left;
}

/* Contact Response Message */
.contact-response-message {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.contact-support-form #changePasswordResponseOkBtn {
  width: 100%;
}

@media (max-width: 800px) {
  .account-modal-content {
    width: 95%;
    margin: 1rem;
  }

  .account-modal-header {
    padding: 1.25rem 1.5rem;
  }

  .account-modal-header h2 {
    font-size: 1.5rem;
  }

  .account-modal-body {
    padding: 1.25rem 1.5rem;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .login-container {
    padding: 2rem 1.5rem;
  }

  .login-container h1 {
    font-size: 1.75rem;
  }
}


