body {
  align-items: center;
  justify-content: center;
}

/* Hide only the original Canvas login form elements to prevent flash */
.ic-Login__content,
.ic-Login__body {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

:root {
  --ic-brand-Login-body-bgd-shadow-color: rgba(0,0,0,0);
}

body.ic-Login-Body {
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body.ic-Login-Body {
  background-image: linear-gradient(transparent, transparent 80%, var(--ic-brand-Login-body-bgd-shadow-color)), var(--ic-brand-Login-body-bgd-image);
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
}

/* Apply Trebuchet MS font to login form elements */
#custom-login-form,
#custom-login-form *,
#custom-forgot-form,
#custom-forgot-form *,
.login-form-container,
.login-form-container * {
  font-family: "Trebuchet MS", Tahoma, sans-serif !important;
}

#custom-login-form{
  /* margin-bottom: 30px; */
}

/* Specific font for form inputs and labels */
#custom-login-form input,
#custom-login-form label,
#custom-login-form button,
#custom-forgot-form input,
#custom-forgot-form label,
#custom-forgot-form button,
.login-form-container input,
.login-form-container label,
.login-form-container button {
  font-family: "Trebuchet MS", Tahoma, sans-serif !important;
}

#login_form input::placeholder {
  color: #424242;
}

.ic-Login__container {
  font-family: "Trebuchet MS", Tahoma, sans-serif !important;
  display: flex;
  flex-direction: row;
  position: relative;
  box-shadow: 0 3px 5px -1px rgba(0,0,0,0.2) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.ic-Login__container * {
  pointer-events: auto !important;
}

/* Only apply to our custom login forms */
#custom-login-form .ic-Form-control--login .ic-Label,
#custom-login-form label,
#custom-forgot-form .ic-Form-control--login .ic-Label,
#custom-forgot-form label {
  color: #424242 !important;
  font-weight: normal !important;
}

/* Force gradient on login buttons with higher specificity */
.Button--login,
input[type="submit"].Button--login,
input[type="button"].Button--login,
#login_form .Button--login,
#login_form input[type="submit"].Button--login,
#login_form input[type="button"].Button--login,
#custom-login-form .Button--login,
#custom-login-form input[type="submit"].Button--login,
#custom-login-form input[type="button"].Button--login {
  background: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  background-image: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  color: #424242 !important;
  border: none !important;
  display: inline-block !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: normal !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

/* Hover effect */
.Button--login:hover,
input[type="submit"].Button--login:hover,
input[type="button"].Button--login:hover,
#login_form .Button--login:hover,
#login_form input[type="submit"].Button--login:hover,
#login_form input[type="button"].Button--login:hover,
#custom-login-form .Button--login:hover,
#custom-login-form input[type="submit"].Button--login:hover,
#custom-login-form input[type="button"].Button--login:hover {
  background: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  background-image: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#forgot_password_form {
  display: none;
  /* color: black; */
}

/* Custom forgot password form styling */
#custom-forgot-form {
  display: none !important;
  width: 100%;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -9999 !important;
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  margin-top: 20px;
  border: none !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

#custom-forgot-form.show {
  display: block !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
}

/* Ensure forgot password form is properly styled when visible */
#custom-forgot-form[style*="display: block"],
#custom-forgot-form.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure forgot password form elements are visible when shown */
#custom-forgot-form.show input,
#custom-forgot-form.show button,
#custom-forgot-form.show label,
#custom-forgot-form.show p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Hide login form when forgot password is shown */
#custom-login-form[style*="display: none"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Style for back to login button */
.forgot_password_form .ic-Login__link,
.forgot_password_form a[href="#"] {
  color: #009688 !important;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  margin-top: 15px;
  font-weight: 500;
}

.forgot_password_form .ic-Login__link:hover,
.forgot_password_form a[href="#"]:hover {
  color: #009688 !important;
}

/* Ensure forgot password form is properly styled */
#custom-forgot-form .ic-Form-control--login {
  margin-bottom: 20px;
}

#custom-forgot-form .Button:hover {
  background: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Make forgot password instructions text visible */
#forgot_password_instructions,
#custom-forgot-form #forgot_password_instructions,
#custom-forgot-form .ic-Login__forgot-text {
  color: #009688 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

/* Make back to login link visible */
.ic-Login__actions--left.ic-Login__link.login_link,
#custom-forgot-form .ic-Login__actions--left.ic-Login__link.login_link,
#custom-forgot-form a[href="/login"] {
  color: #009688 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  display: inline-block !important;
  margin-top: 15px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}

.ic-Login__actions--left.ic-Login__link.login_link:hover,
#custom-forgot-form .ic-Login__actions--left.ic-Login__link.login_link:hover,
#custom-forgot-form a[href="/login"]:hover {
  text-decoration: underline !important;
}

/* Ensure all text in forgot password form is visible */
#custom-forgot-form * {
  color: #424242 !important;
}

#custom-forgot-form label,
#custom-forgot-form p,
#custom-forgot-form span {
  color: #424242 !important;
}

/* Override any white text colors in forgot password form */
#custom-forgot-form .ic-Login__forgot-text,
#custom-forgot-form .ic-Login__link {
  color: #424242 !important;
}

/* Left panel */
.delphinium-panel {
  background: linear-gradient(175deg, #009688, #fff);
  padding: 30px;
  width: 46%;
  color: #424242;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  font-family: "Trebuchet MS", Tahoma, sans-serif !important;
}

.delphinium-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  opacity: 0.3;
  animation: float 20s infinite linear;
  pointer-events: none;
}

@keyframes float {
  0% {
    transform: translateX(-100px) translateY(-100px);
  }
  100% {
    transform: translateX(100px) translateY(100px);
  }
}

.logo-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  margin-bottom: 20px;
}

/* Center the logo image in the feature section */
.feature-section img {
  width: 85% !important;
  height: 250px !important;
  display: block !important;
  margin: 0 auto 5px auto !important;
  object-fit: contain !important;
  max-width: 300px !important;
}


/* Remove the feature section centering - keep only image centered */
.feature-section:first-child {
  text-align: left;
  display: block;
}

.feature-section {
  margin-bottom: 30px;
  z-index: 2;
  color: #424242;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  cursor: pointer;
  margin-left: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 15px;
  line-height: 1.3;
  margin-left: 30px;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #424242;
  font-size: 16px;
}

.email-support-text {
  color: #009688;
  text-decoration: none !important;
  font-size: 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: all 0.3s ease;
  font-weight: 500 !important;
}

.email-support-text:hover {
  color: #009688 !important;
  text-decoration: underline !important;
}

/* Right panel */
.login-form-container {
  flex: 1;
  width: 400px;
  min-width: 400px;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  color: #424242;
  position: relative;
  z-index: 2;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  font-family: "Trebuchet MS", Tahoma, sans-serif !important;
}

.welcome-header {
  text-align: center;
  margin-bottom: 10px;
}

.welcome-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 600;
}

.welcome-subtitle {
  color: #009688;
  font-size: 14px;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 15px;
}

.social-btn {
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 9999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(90deg, #b6dfe7, #dbf6ed);
  color: #424242;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
  color: #424242 !important;
}

/* .social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} */

.social-btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  fill: #009688;
}

.login-container {
  height: auto;
  min-height: auto;
  overflow: visible;
}

.form-group label {
  color: #424242;
  font-weight: 600;
}

/* Make sure form elements are visible */
.login-form button,
.login-form a {
  display: block;
  visibility: visible;
}

.microsoft-btn {
  grid-column: 1 / -1;
}

.divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Style only email and password input fields */
#custom-login-form input[type="text"],
#custom-login-form input[type="email"],
#custom-login-form input[type="password"],
#custom-forgot-form input[type="text"],
#custom-forgot-form input[type="email"] {
  border: 1px solid #009688 !important;
  border-radius: 4px !important;
}

/* Style checkbox with matching border color - More aggressive styling */
#custom-login-form input[type="checkbox"],
#custom-forgot-form input[type="checkbox"],
#custom-login-form .ic-Login__checkbox input[type="checkbox"],
#custom-forgot-form .ic-Login__checkbox input[type="checkbox"],
input[name="pseudonym_session[remember_me]"] {
  border: 1px solid #009688 !important;
  border-color: #009688 !important;
  border-radius: 3px !important;
  width: 15px !important;
  height: 15px !important;
  accent-color: #009688 !important;
  background-color: white !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  outline: none !important;
  box-shadow: 0 0 0 1px #009688 !important;
}

/* Additional border enforcement */
#custom-login-form input[type="checkbox"]:focus,
#custom-forgot-form input[type="checkbox"]:focus,
input[name="pseudonym_session[remember_me]"]:focus {
  border: 1px solid #009688 !important;
  border-color: #009688 !important;
  box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.2) !important;
}

/* When checkbox is checked */
#custom-login-form input[type="checkbox"]:checked,
#custom-forgot-form input[type="checkbox"]:checked,
input[name="pseudonym_session[remember_me]"]:checked {
  background-color: #009688 !important;
  border-color: #009688 !important;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d0d0d0, #e0e0e0, #d0d0d0, transparent);
  transform: translateY(-50%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.divider span {
  background: white;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  color: #009688;
  font-weight: normal;
  font-size: 12px;
  letter-spacing: 1px;
}

/* Keep Canvas original form styles intact */
#login_form input,
#login_form button,
#login_form a {
  position: relative;
  z-index: 3;
  color: #424242;
}

/* Make sure nothing overlays inputs */
#login_form {
  position: relative;
  z-index: 3;
}


.cnt_signin {
    color: #009688;
}

@media (max-width: 768px) {
  .ic-Login__container {
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
  }
  
  /* Left panel - delphinium panel */
  .delphinium-panel {
    width: 100% !important;
    padding: 20px !important;
    border-radius: 0 !important;
    order: 1 !important;
    min-height: auto !important;
  }
  
  /* Right panel - login form */
  .login-form-container {
    width: 100% !important;
    min-width: auto !important;
    padding: 30px 20px !important;
    border-radius: 0 !important;
    order: 2 !important;
    flex: none !important;
    background: white !important;
  }
  
  /* Social buttons - stack vertically on mobile */
  .social-buttons {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .social-btn {
    padding: 15px 20px !important;
    font-size: 16px !important;
  }
  
  /* Welcome header adjustments */
  .welcome-header {
    margin-bottom: 30px !important;
  }
  
  .welcome-title {
    font-size: 24px !important;
  }
  
  .welcome-subtitle {
    font-size: 16px !important;
  }
  
  /* Feature sections adjustments */
  .feature-section {
    margin-bottom: 20px !important;
  }
  
  .feature-title {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }
  
  .feature-list li {
    font-size: 16px !important;
    padding: 6px 0 6px 15px !important;
    margin-left: 25px !important;
  }
  
  .email-support-text {
    font-size: 14px !important;
  }
  
  /* Form elements adjustments */
  #custom-login-form input,
  #custom-login-form button,
  #custom-forgot-form input,
  #custom-forgot-form button {
    font-size: 16px !important;
    padding: 12px 15px !important;
  }
  
  /* Divider adjustments */
  .divider {
    margin: 25px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }
  
  .divider span {
    padding: 0 25px !important;
    font-size: 13px !important;
    letter-spacing: 0.8px !important;
  }
  
  /* Create account section */
  /* .create-account {
    margin-top: 5px !important;
  }
   */
  .create-account p {
    font-size: 16px !important;
    margin-bottom: 15px !important;
  }

}

/* Extra small screens */
@media (max-width: 480px) {
  .delphinium-panel {
    padding: 15px !important;
  }
  
  .login-form-container {
    padding: 20px 15px !important;
  }
  
  .welcome-title {
    font-size: 22px !important;
  }
  
  .feature-title {
    font-size: 16px !important;
  }
  
  .feature-list li {
    font-size: 20px !important;
  }
  
  .social-btn {
    padding: 12px 15px !important;
    font-size: 14px !important;
  }
}

.canvas-notification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 10px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Override any Canvas default button styles */
.ic-Login__actions .Button,
.ic-Login__actions input[type="submit"],
.ic-Login__actions input[type="button"],
.ic-Login__actions .Button--login {
  background: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  background-image: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  background-color: transparent !important;
  color: #424242 !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}

.ic-Login__actions .Button:hover,
.ic-Login__actions input[type="submit"]:hover,
.ic-Login__actions input[type="button"]:hover,
.ic-Login__actions .Button--login:hover {
  background: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  background-image: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  background-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Additional override for any white background */
.Button--login[style*="background"],
input[type="submit"].Button--login[style*="background"],
input[type="button"].Button--login[style*="background"] {
  background: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  background-image: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  background-color: transparent !important;
}

/* Login message styles */
.login-error-message,
.login-success-message {
  border-radius: 6px;
  padding: 12px 16px;
  margin: 15px 0;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

.login-error-message {
  color: #d32f2f;
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  border-left: 4px solid #d32f2f;
}

.login-success-message {
  color: #2e7d32;
  background-color: #e8f5e8;
  border: 1px solid #c8e6c9;
  border-left: 4px solid #2e7d32;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state for login button */
.Button--login:disabled,
input[type="submit"].Button--login:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  background: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
}

/* Form validation styles */
#custom-login-form input:invalid {
  border-color: #d32f2f;
}

#custom-login-form input:focus {
  border-color: #009688;
  box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.2);
}

/* Ensure login form is visible and functional */
#custom-login-form {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure all form elements in custom login form are visible and functional */
#custom-login-form form,
#custom-login-form input,
#custom-login-form button,
#custom-login-form label,
#custom-login-form .ic-Form-control--login,
#custom-login-form .ic-Login__checkbox,
#custom-login-form .ic-Login__actions,
#custom-login-form .ic-Login__forgot {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
  pointer-events: auto !important;
}

/* Style the form inputs to ensure they're visible */
#custom-login-form input[type="email"],
#custom-login-form input[type="password"],
#custom-login-form input[type="text"] {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #009688 !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  margin-bottom: 15px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: white !important;
  color: #424242 !important;
}

/* Style the labels */
#custom-login-form label {
  display: block !important;
  margin-bottom: 8px !important;
  font-weight: 600 !important;
  color: #424242 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Style the submit button */
#custom-login-form button[type="submit"],
#custom-login-form .Button--login {
  width: 100% !important;
  padding: 12px 24px !important;
  background: linear-gradient(90deg, #b6dfe7, #dbf6ed) !important;
  color: #424242 !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin-top: 15px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Style the checkbox */
#custom-login-form input[type="checkbox"] {
  margin-right: 8px !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Hide the original forgot password link in the login form */
#custom-login-form .ic-Login__forgot,
#custom-login-form .ic-Login__link {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* Style the forgot password link container positioned above Create Account */
.forgot-password-link-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.forgot-password-link-container .ic-Login__link {
  color: #009688 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  font-size: 14px !important;
  display: inline-block !important;
}

.forgot-password-link-container .ic-Login__link:hover {
  text-decoration: underline !important;
  color: #007a6b !important;
}

#custom-login-form form {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#custom-login-form input,
#custom-login-form button,
#custom-login-form select,
#custom-login-form textarea {
  /* display: block !important; */
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Ensure submit button is clickable */
#custom-login-form input[type="submit"],
#custom-login-form button[type="submit"],
#custom-login-form .Button--login {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Debug styles - add a border to see if elements are visible */
#custom-login-form {
  border: 1px solid transparent;
}

#custom-login-form form {
  border: 1px solid transparent;
}

/* Ensure registration link is properly styled and clickable */
.create-account-btn {
  color: #009688 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: inline-block !important;
  position: relative !important;
  z-index: 10 !important;
  font-size: 14px !important;
}

.create-account-btn:hover {
  text-decoration: underline !important;
}

.create-account-btn:active {
  color: #003d82 !important;
}

/* Ensure the create account section is visible */
.create-account {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.create-account p {
  color: #009688 !important;
  margin-bottom: 10px !important;
}

/* Hide forgot password link container and create account section when forgot password form is shown */
#custom-forgot-form.show ~ .forgot-password-link-container,
#custom-forgot-form[style*="display: block"] ~ .forgot-password-link-container,
#custom-forgot-form.show ~ .create-account,
#custom-forgot-form[style*="display: block"] ~ .create-account,
#custom-forgot-form.show + .forgot-password-link-container,
#custom-forgot-form[style*="display: block"] + .forgot-password-link-container,
#custom-forgot-form.show + .create-account,
#custom-forgot-form[style*="display: block"] + .create-account {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Hide create account when login form is hidden */
#custom-login-form[style*="display: none"] ~ .create-account,
#custom-login-form[style*="display: none"] + .create-account {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Force hide forgot password link container and create account when forgot password is active */
.delphinium-panel:has(#custom-forgot-form.show) .forgot-password-link-container,
.delphinium-panel:has(#custom-forgot-form.show) .create-account,
.login-form-container:has(#custom-forgot-form.show) .forgot-password-link-container,
.login-form-container:has(#custom-forgot-form.show) .create-account {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide forgot password link container and create account when forgot password is active using the new class */
.login-form-container.forgot-password-active .forgot-password-link-container,
.login-form-container.forgot-password-active .create-account,
.forgot-password-active .forgot-password-link-container,
.forgot-password-active .create-account {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

/* Hide create account with hidden class */
.create-account.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

/* Comprehensive hiding for create account elements */
.create-account,
.createAccount {
  transition: all 0.3s ease;
}

/* Hide forgot password link container and create account when forgot password is active */
.forgot-password-active .forgot-password-link-container,
.forgot-password-active .create-account,
.forgot-password-active .createAccount,
.login-form-container.forgot-password-active .forgot-password-link-container,
.login-form-container.forgot-password-active .create-account,
.login-form-container.forgot-password-active .createAccount {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -9999 !important;
  transform: scale(0) !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* Hide create account with hidden class */
.create-account.hidden,
.createAccount.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -9999 !important;
  transform: scale(0) !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* Force hide when forgot password form is shown */
#custom-forgot-form.show ~ .create-account,
#custom-forgot-form.show ~ .createAccount,
#custom-forgot-form[style*="display: block"] ~ .create-account,
#custom-forgot-form[style*="display: block"] ~ .createAccount {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -9999 !important;
  transform: scale(0) !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* Show forgot password link container and create account when login form is active */
.login-form-container:not(.forgot-password-active) .forgot-password-link-container,
.login-form-container:not(.forgot-password-active) .create-account,
.login-form-container:not(.forgot-password-active) .createAccount {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
  transform: scale(1) !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Ensure create account is visible when login form is shown */
#custom-login-form[style*="display: block"] ~ .create-account,
#custom-login-form[style*="display: block"] ~ .createAccount {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
  transform: scale(1) !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Remove hidden class effects */
.create-account:not(.hidden),
.createAccount:not(.hidden) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
  transform: scale(1) !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Hide Canvas SSO div completely */
.ic-Login__sso,
.ic-Login__sso-list,
.ic-Login__sso-list__item,
.ic-Login__sso-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  pointer-events: none !important;
}

/* Ensure elements below move up to fill the space */
.ic-Login__sso + *,
.ic-Login__sso ~ * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Fix checkbox and "Stay signed in" alignment - ONLY for our custom forms */
#custom-login-form .ic-Login__checkbox-wrapper,
#custom-login-form .ic-Login__checkbox,
#custom-login-form input[type="checkbox"] + label,
#custom-login-form .checkbox-wrapper,
#custom-forgot-form .ic-Login__checkbox-wrapper,
#custom-forgot-form .ic-Login__checkbox,
#custom-forgot-form input[type="checkbox"] + label,
#custom-forgot-form .checkbox-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 10px 0 !important;
}

/* Style the checkbox - ONLY for our custom forms */
#custom-login-form .ic-Login__checkbox input[type="checkbox"],
#custom-login-form input[type="checkbox"],
#custom-forgot-form .ic-Login__checkbox input[type="checkbox"],
#custom-forgot-form input[type="checkbox"] {
  margin: 0 !important;
  /* margin-right: 8px !important; */
  vertical-align: middle !important;
  position: relative !important;
  top: 0 !important;
}

/* Style the label - ONLY for our custom forms */
#custom-login-form .ic-Login__checkbox label,
#custom-login-form input[type="checkbox"] + label,
#custom-login-form label[for*="checkbox"],
#custom-forgot-form .ic-Login__checkbox label,
#custom-forgot-form input[type="checkbox"] + label,
#custom-forgot-form label[for*="checkbox"] {
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
  color: #424242 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Ensure proper spacing - ONLY for our custom forms */
#custom-login-form .ic-Login__checkbox,
#custom-login-form .checkbox-wrapper,
#custom-forgot-form .ic-Login__checkbox,
#custom-forgot-form .checkbox-wrapper {
  margin: 15px 0 !important;
  padding: 0 !important;
}

/* Specific targeting for "Stay signed in" checkbox */
#pseudonym_session_remember_me,
input[name="pseudonym_session[remember_me]"][type="checkbox"] {
  margin: 0 !important;
  margin-right: 3px !important;
  vertical-align: middle !important;
  position: relative !important;
  top: 0 !important;
  display: inline-block !important;
}

/* Specific targeting for "Stay signed in" label */
label[for="pseudonym_session_remember_me"],
label[for*="pseudonym_session_remember_me"] {
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
  color: #424242 !important;
  cursor: pointer !important;
  display: inline-block !important;
  font-family: "Trebuchet MS", Tahoma, sans-serif !important;
}

/* Container for checkbox and label */
/* input[name="pseudonym_session[remember_me]"][type="checkbox"] + label,
#pseudonym_session_remember_me + label {
  margin-left: 8px !important;
} */

/* Wrapper styling for the checkbox group */
.ic-Login__checkbox:has(#pseudonym_session_remember_me),
.ic-Login__checkbox:has(input[name="pseudonym_session[remember_me]"]) {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 15px 0 !important;
  padding: 0 !important;
}

/* Ensure only the forgot password link is clickable, not the entire div */
.ic-Login__forgot {
  pointer-events: none !important;
}

.ic-Login__forgot .ic-Login__link.forgot_password_link,
.ic-Login__forgot #login_forgot_password,
.ic-Login__forgot a[href="#"] {
  pointer-events: auto !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-decoration: none !important;
}

/* Style the forgot password link */
.ic-Login__link.forgot_password_link,
#login_forgot_password {
  color: #009688 !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  font-family: "Trebuchet MS", Tahoma, sans-serif !important;
  text-decoration: none !important;
}

.ic-Login__link.forgot_password_link:hover,
#login_forgot_password:hover {
  text-decoration: underline !important;
}

/* Position email support at left bottom when forgot password is active */
.login-form-container.forgot-password-active .email-support,
.forgot-password-active .email-support {
  position: absolute !important;
  bottom: 20px !important;
  left: 20px !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure login form container has relative positioning for absolute positioning of email support */
.login-form-container.forgot-password-active {
  position: relative !important;
  min-height: 400px !important;
}

/* Style the email support link when positioned at bottom left */
.login-form-container.forgot-password-active .email-support-text,
.forgot-password-active .email-support-text {
  color: #009688 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  font-family: "Trebuchet MS", Tahoma, sans-serif !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 5px 0 !important;
  transition: color 0.3s ease !important;
}

.login-form-container.forgot-password-active .email-support-text:hover,
.forgot-password-active .email-support-text:hover {
  text-decoration: underline !important;
}

/* Remove external link icon from email support text */
.email-support-text::after,
.email-support-text::before {
  content: none !important;
  display: none !important;
}

/* Also target any potential icon elements */
.email-support-text svg,
.email-support-text i,
.email-support-text .icon {
  display: none !important;
  visibility: hidden !important;
}