

.path-user .main-header {
	position: relative !important;
}


/* Main login form container */
.user-login-form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.user-login-form:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Form title styling */
.user-login-form h1,
.user-login-form .page-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2937;
  font-size: 1.875rem;
  font-weight: 700;
  position: relative;
}

.user-login-form h1::after,
.user-login-form .page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 2px;
}

/* Form field groups */
.form-item {
  margin-bottom: 1.5rem;
  position: relative;
}

/* Label styling */
.form-item label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Input field styling */
.form-item input[type="text"],
.form-item input[type="email"],
.form-item input[type="password"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9fafb;
  box-sizing: border-box;
}

.form-item input[type="text"]:focus,
.form-item input[type="email"]:focus,
.form-item input[type="password"]:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Username field specific styling */
#edit-name {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 45px;
}

/* Password field specific styling */
#edit-pass {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM15.1 8H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 45px;
}

/* Submit button styling */
.form-actions {
  margin-top: 2rem;
  text-align: center;
}

.form-submit,
#edit-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-submit:hover,
#edit-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.form-submit:active,
#edit-submit:active {
  transform: translateY(0);
}

/* Remember me checkbox styling */
.form-item-persistent-login {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.form-item-persistent-login input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  transform: scale(1.2);
  accent-color: #3b82f6;
}

.form-item-persistent-login label {
  margin-bottom: 0;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

/* Links styling (forgot password, register, etc.) */
.user-login-form a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.user-login-form a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Error messages */
.messages--error,
.form-item--error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.875rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.form-item--error input {
  border-color: #dc2626 !important;
}

/* Success messages */
.messages--status {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.875rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Loading state for form */
.form-submit:disabled,
#edit-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Responsive design */
@media (max-width: 480px) {
  .user-login-form {
    margin: 1rem;
    padding: 1.5rem;
    max-width: none;
  }
  
  .user-login-form h1,
  .user-login-form .page-title {
    font-size: 1.5rem;
  }
}

/* Additional styling for Drupal-specific elements */
.form-required {
  color: #dc2626;
}

.description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Custom styling for CAPTCHA if present */
.captcha {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

/* Focus visible for accessibility */
.form-submit:focus-visible,
#edit-submit:focus-visible,
input:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}