.user-auth-widget, 
.user-auth-register-success {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 456px;
    height: auto;
    margin: 0 auto;
    padding: 16px;
    background-color: #fff;
    border: 1px solid #DFE4EC;
    border-radius: 16px;
    box-shadow: var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-400) var(--sds-size-depth-0) var(--sds-color-black-100);
}

.auth-header h4 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -2%;
}
.auth-footer a {
    width: 100%;
}
.user-auth-divider {
    border-top: 1px solid #DFE4EC;
}

.auth-social-login {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-login-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-btn, .google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #F5F7FA !important;
    border: 1px solid #DFE4EC;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    color: #1D2430 !important;
}

.facebook-btn:hover, .google-btn:hover, .create-account-btn:hover, .back-to-login-btn:hover,.resend-register-confirm-btn:hover,
.facebook-btn:focus, .google-btn:focus, .create-account-btn:focus, .back-to-login-btn:focus, .resend-register-confirm-btn:focus,
.facebook-btn:active, .google-btn:active, .create-account-btn:active, .back-to-login-btn:active, .resend-register-confirm-btn:active, .accept-account-btn:hover, .accept-account-btn:focus{
    background-color: #EBF0F4;
    border-color: #9EA7B5;
    color: #1D2430;
}

.social-login-facebook-icon {
    background-image: url('../images/user-auth-login-facebook-icon.svg');
}

.social-login-google-icon {
    background-image: url('../images/user-auth-login-google-icon.svg');
}

.social-login-facebook-icon, 
.social-login-google-icon, 
.benefits-li-check-icon {
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.user-auth-divider-with-text {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.user-auth-divider-with-text::before,
.user-auth-divider-with-text::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #DFE4EC;
}

.user-auth-divider-with-text span {
  margin: 0 8px;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #707B8B;
  background-color: #fff;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form label {
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #1D2430;
}

.auth-form input {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #FFFFFF;
    border: 1px solid #DFE4EC;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #9EA7B5;
    margin-bottom: 16px;
}

.auth-form input:hover {
    border-color: #9EA7B5;
    box-shadow: var(--sds-size-depth-0) var(--sds-size-depth-0) var(--sds-size-depth-0) var(--sds-size-stroke-focus-ring) var(--sds-color-background-default-secondary-hover);
}

.auth-form input:focus,
.auth-form input:active {
    border-color: #9EA7B5;
    box-shadow: var(--sds-size-depth-0) var(--sds-size-depth-0) var(--sds-size-depth-0) var(--sds-size-stroke-focus-ring) var(--sds-color-background-default-secondary-hover);
}

.auth-form input::placeholder {
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  color: #9EA7B5;
  opacity: 1;
}

.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #2DA736 !important;
    border: 1px solid #2DA736;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
}

.auth-submit-btn:hover,
.auth-submit-btn:focus,
.auth-submit-btn:active {
    background-color: #24862B !important;
    border-color: #24862B;
    color: #FFFFFF;
}

.forgot-password-link {
    display: block;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #1D2430;
    text-decoration: none;
}

.auth-footer {
    display: flex;
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.auth-footer p {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #1D2430;
    margin: 0;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    padding: 0;
    list-style: none;
}

.benefits-list li {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #1D2430;
}

.benefits-li-check-icon {
    background-image: url("../images/user-auth-login-check-icon.svg");
}

.create-account-btn, .resend-register-confirm-btn, .accept-account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #F5F7F9;
    border: 1px solid #DFE4EC;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    color: #1D2430;
}

.back-to-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: transparent;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    color: #1D2430;
}

/* For registration form */

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    width: 100%;
    padding-right: 40px; /* Leave space for the toggle icon */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: auto;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer;
    background: no-repeat center/contain;
    background-image: url('../images/user-auth-login-eye-icon.svg');
}

.password-toggle.show {
    background-image: url('../images/user-auth-login-eye-icon.svg'); /* Icon for visible password */
    filter: brightness(0) saturate(100%) invert(9%) sepia(34%) saturate(718%) hue-rotate(179deg) brightness(92%) contrast(88%);
}

/* Parent Container */
.user-auth-register-custom-checkbox-container {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    gap: 16px;
}

.user-auth-register-custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Custom Checkbox */
.user-auth-register-custom-checkbox-wrapper {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.user-auth-register-custom-checkbox-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.user-auth-register-custom-checkbox-indicator {
    width: 16px;
    height: 16px;
    border: 1px solid #2DA736;
    border-radius: 4px;
    background-color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add checkmark on checked */
.user-auth-register-custom-checkbox-input:checked + .user-auth-register-custom-checkbox-indicator {
    background-color: #2DA736;
    color: #FFFFFF;
}

.user-auth-register-custom-checkbox-input:checked + .user-auth-register-custom-checkbox-indicator::before {
    content: '✔';
    font-size: 12px;
    color: #FFFFFF;
}

.user-auth-register-custom-checkbox-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    font-family: 'Rethink Sans';
    color: #1D2430;
    margin: 0;
    cursor: pointer;
}

.user-auth-register-custom-checkbox-text .user-auth-register-custom-checkbox-link {
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    font-family: 'Inter';
    text-decoration: underline;
    color: #2DA736;
}

.user-auth-register-custom-checkbox-classtrucks-link,
.user-auth-register-custom-checkbox-classtrucks-link:hover,
.user-auth-register-custom-checkbox-classtrucks-link:focus,
.user-auth-register-custom-checkbox-classtrucks-link:active {
    color: #2DA736;
    text-decoration: none;
}

.user-auth-check-email-block {
    display: flex;
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.user-auth-check-email-block p {
    color: #1D2430;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

.user-auth-check-email-block span {
    color: #1D2430;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

input.error {
    border-color: #C00F0C;
}

.input-error-toast {
    display: none;
    border: 1px solid #C00F0C;
    background-color: #FEE9E7;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.input-error-toast div:first-child {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #C00F0C;
}

.input-error-toast div:last-child {
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #C00F0C;
}

.resend-message {
    display: none;
    background-color: #FFFBEB;
    border: 1px solid #975102;
    padding: 16px;
    flex-direction: column;
    gap: 16px;
    border-radius: 8px;
}

.resend-message .message-header {
    color: #975102;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.resend-message .message-content {
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #975102;
}

.login-top-block {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
}

.register-confirm-failed-toast-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 456px;
    padding: 16px;
    border-radius: 8px;
    background-color: #FEE9E7;
    border: 1px solid #C00F0C;
    box-shadow: var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-400) var(--sds-size-depth-0) var(--sds-color-black-100);
}

.register-confirm-failed-toast-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #C00F0C;
    margin: 0;
}

.register-confirm-failed-toast-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #C00F0C;
    margin: 0;
}

.register-confirm-success-toast-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 456px;
    padding: 16px;
    border-radius: 8px;
    background-color: #EBFFEE;
    border: 1px solid #009951;
    box-shadow: var(--sds-size-depth-0) var(--sds-size-depth-025) var(--sds-size-depth-400) var(--sds-size-depth-0) var(--sds-color-black-100);
}

.register-confirm-success-toast-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #009951;
    margin: 0;
}

.register-confirm-success-toast-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #009951;
    margin: 0;
}

@media (max-width: 768px) {
    .user-auth-widget {
        max-width: 361px;    
    }
    
    .auth-social-login {
        flex-direction: column;
    }
    
    .auth-header h4 {
        font-size: 16px;
        line-height: 19.2px;
    }
    
    .facebook-btn, 
    .google-btn,
    .auth-submit-btn,
    .create-account-btn,
	.accept-account-btn,
    .back-to-login-btn {
        padding: 14px 16px;
    }
}

button.accept-account-btn{
	transition:0.3s all;
}
button.accept-account-btn.disabled {
    cursor: no-drop;
    opacity: 0.5;
}

button.accept-account-btn .ct-loader {
    border: 3px solid #9EA7B5;
    border-bottom-color: transparent;
}

button.accept-account-btn {
    margin-top: 16px;
}