@font-face {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/proximanova_light.otf');
}

@font-face {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/proximanova_regular.ttf');
}

@font-face {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/proximanova_bold.otf');
}

@font-face {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/proximanova_bold.otf');
}

body {
    background-color: #f4f5f5;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.header {
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    display: block;
}

#login-step header {
    margin-bottom: 20px;
    display: block;
}

#two-factor-step header {
    margin-bottom: 20px;
    display: block;
}

h2 {
    font-size: 29px;
    color: #272D30;
    font-weight: 500;
}

.floating-label-group {
    position: relative;
    margin-bottom: 20px;
}

.floating-label-group input {
    width: 100%;
    padding: 12px 10px 12px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.floating-label-group label {
    position: absolute;
    top: 18px;
    left: 10px;
    color: #7D8183;
    background-color: white;
    transition: 0.2s ease all;
    pointer-events: none;
    padding: 0 1px;
    font-size: 16px;
}

.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label {
    top: -7px;
    left: 8px;
    font-size: 12px;
}

.floating-label-group input:not(:placeholder-shown) + label {
    color: #272D30
}

.floating-label-group input:focus + label {
    color: #3F8F24
}

input:-webkit-autofill {
    transition: background-color 9999s ease-in-out 0s;
    background-color: transparent;
    color: #000;
}

.password-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 35px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.login-btn {
    background-color: #272D30;
}

h1 {
    margin: 0 auto;
    width: 100%;
}

#banner {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 60px auto;
    padding: 0 10px;
}

#banner h1 {
    margin: 0;
    text-align: left;
}

#banner h1 img {
    width: 122px;
    height: 32px;
    display: inline-block;
}

div#layout-content {
    position: relative;
    margin: 20px auto 0;
    padding: 40px 40px 80px 40px;
    min-height: 757px;
    max-width: 500px;
    box-sizing: border-box;
    background: white;
    border-radius: 4px;
    vertical-align: baseline;
    display: block;
}

div#login-area {
    color: #272D30;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    height: 100%;
    width: 100%;
    vertical-align: baseline;
}

div#two-factor-auth-area {
    color: #272D30;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    height: 100%;
    width: 100%;
    vertical-align: baseline;
}

div#lost-password-area {
    color: #272D30;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    height: 100%;
    width: 100%;
    vertical-align: baseline;
}

#login-step {
    margin: 0;
    height: 100%;

    & input[type="password"],
    & input[type="text"] {
        display: block;
        background: #FFFFFF;
        border: 1px solid #A9ABAC;
        padding: 15px;
        height: 56px;
        width: 100%;
        color: #202020;
        box-shadow: none;
        box-sizing: border-box;
        border-radius: 3px;
        font-family: 'Proxima Nova', sans-serif;
        font-size: 16px;

        &:focus,
        &:focus-visible {
            border: 1px solid #3F8F24;
            outline: none;
        }
    }
}

#two-factor-step {
    margin: 0;
    box-sizing: border-box;

    & input[type="text"] {
        display: block;
        background: #FFFFFF;
        border: 1px solid #A9ABAC;
        padding: 15px;
        height: 56px;
        width: 100%;
        color: #202020;
        box-shadow: none;
        box-sizing: border-box;
        border-radius: 3px;
        font-family: 'Proxima Nova', sans-serif;
        font-size: 16px;

        &:focus,
        &:focus-visible {
            border: 1px solid #70B300;
            outline: none;
        }
    }
}

#lost-password-step {
    margin: 0 auto;
    box-sizing: border-box;

    & input[type="text"] {
        display: block;
        background: #FFFFFF;
        border: 1px solid #A9ABAC;
        padding: 15px;
        height: 56px;
        width: 100%;
        color: #202020;
        box-shadow: none;
        box-sizing: border-box;
        border-radius: 3px;
        font-family: 'Proxima Nova', sans-serif;
        font-size: 16px;

        &:focus,
        &:focus-visible {
            border: 1px solid #70B300;
            outline: none;
        }
    }
}

#two-factor-step {
    margin: 0;
    margin-left: -40px;
    padding: 20px 40px 0 40px;
    width: calc(100% + 60px);
    box-sizing: border-box;

    & input[type="text"] {
        display: block;
        background: #FFFFFF;
        border: 1px solid #A9ABAC;
        padding: 15px;
        height: 45px;
        width: 100%;
        color: #202020;
        box-shadow: none;
        box-sizing: border-box;
        border-radius: 3px;
        font-family: 'Proxima Nova', sans-serif;
        font-size: 16px;

        &:focus,
        &:focus-visible,
        --webkit-focus-ring-color {
            outline: 0px solid #70B300;
        }
    }
}

#two-factor-step {
    margin: 0;
    margin-left: -40px;
    padding: 20px 40px 0 40px;
    width: calc(100% + 60px);
    box-sizing: border-box;

    & input[type="text"] {
        display: block;
        background: #FFFFFF;
        border: 1px solid #A9ABAC;
        padding: 15px;
        height: 45px;
        width: 100%;
        color: #202020;
        box-shadow: none;
        box-sizing: border-box;
        border-radius: 3px;
        font-family: 'Proxima Nova', sans-serif;
        font-size: 16px;

        &:focus,
        &:focus-visible {
            border: 1px solid #70B300;
            outline: none;
        }
    }
}

#two-factor-step {
    margin: 0;
    margin-left: -40px;
    padding: 20px 40px 0 40px;
    width: calc(100% + 60px);
    box-sizing: border-box;

    & input[type="text"] {
        display: block;
        background: #FFFFFF;
        border: 1px solid #A9ABAC;
        padding: 15px;
        height: 45px;
        width: 100%;
        color: #202020;
        box-shadow: none;
        box-sizing: border-box;
        border-radius: 3px;
        font-family: 'Proxima Nova', sans-serif;
        font-size: 16px;

        &:focus,
        &:focus-visible {
            border: 1px solid #70B300;
            outline: none;
        }
    }
}

#two-factor-step {
    margin: 0;
    margin-left: -40px;
    padding: 20px 40px 0 40px;
    width: calc(100% + 60px);
    box-sizing: border-box;

    & input[type="text"] {
        display: block;
        background: #FFFFFF;
        border: 1px solid #A9ABAC;
        padding: 15px;
        height: 45px;
        width: 100%;
        color: #202020;
        box-shadow: none;
        box-sizing: border-box;
        border-radius: 3px;
        font-family: 'Proxima Nova', sans-serif;
        font-size: 16px;

        &:focus,
        &:focus-visible {
            border: 1px solid #70B300;
            outline: none;
        }
    }
}

#login-footer-links {
    position: relative;
    margin: 0 auto;
    padding-top: 10px;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #7D8183
}

#login-footer-links a {
    margin: 0 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: text-decoration 0.3s ease;
}

#login-footer-links a:hover {
    text-decoration: underline;
}

#login-footer-links {

    & span,
    & a {
        color: #272D30;
    }
}

div#content {
    height: 83%;
    padding: 0 10px;
}

fieldset {
    border: 0;
    margin-bottom: -10px;
    padding: 0;
    margin-inline: 0;
}

#login-step #passwordField[type="password"] {
    font-weight: bold;
    letter-spacing: -0.5px;
}

/* Hide MS Edge password reveal button */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.btn {
    position: relative;
    display: inline-block;
    padding: 8px 14px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid #272D30;
    border-radius: 4px;
    text-transform: none;
    letter-spacing: 0.25px;
}

.btn-primary {
    color: #FFFFFF;
    background-color: #3F8F24;
    border: 1px solid transparent;
}

#login-submit:disabled {
    cursor: default;
    opacity: 0.5;
    background-color: #E9EAEA;
    color: #A9ABAC;
}

#verify-button:disabled {
    cursor: default;
    opacity: 0.5;
    background-color: #E9EAEA;
    color: #A9ABAC;
}

#send-email-button:disabled {
    cursor: default;
    opacity: 0.5;
    background-color: #E9EAEA;
    color: #A9ABAC;
}

#verify-button:disabled {
    cursor: default;
    opacity: 0.5;
    background-color: #E9EAEA;
    color: #A9ABAC;
}

.lost-password {
    margin-bottom: 20px;
}

#lost-password-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    color: #3F8F24;
}

#lost-password-link:hover {
    text-decoration: underline;
}

.action-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    color: #3F8F24;
}

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

#resend-2fa-error-link.action-link-disabled, .action-link-disabled {
    color: #A9ABAC;
    text-decoration: none;
    cursor: default;
}

.action-link-disabled:hover {
    text-decoration: none;
}

#crm2faForm > p {
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.6;
}

#lost-password-form > p {
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.6;
}

.verify-button-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.trusted-device-container {
    margin-bottom: 35px;
}

#crm2faForm > p {
    margin-top: 24px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Apply a consistent margin-bottom of 24px */
#crm2faForm h2,
#lost-password-form h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 29px;
    color: #272D30;
    font-weight: 500;
}

#lost-password-form h2 {
    margin-bottom: 24px;
}

#crm2faForm h2 + p {
    margin-top: 13px;
    margin-bottom: 24px;
    line-height: 1.6;
}

#lost-password-form h2 + p {
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.6;
}

#crm2faForm #verification-code,
#lost-password-form #username-input-container,
#crm2faForm .trusted-device-container,
#crm2faForm .verify-button-container,
#crm2faForm .resend-code,
#crm2faForm .error-banner {
    margin-bottom: 24px;
}

#crm2faForm .floating-label-group:has(#verification-code) {
    margin-bottom: 24px;
}

/* ========================================== */

.trusted-device-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.trusted-device-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #FFFFFF;
    border: 1px solid #7D8183;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.trusted-device-label input[type="checkbox"]:checked ~ .checkmark {
    background-color: #2196F3;
    border-color: #2196F3;
}

.checkmark:after {
    content: "";
    display: none;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
}

.trusted-device-label input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.trusted-device-label:hover .checkmark {
    border-color: #70B300;
}

.trusted-device-label input[type="checkbox"]:focus ~ .checkmark {
    outline: 2px solid #70B300;
    outline-offset: 2px;
}

#crm2faForm > p, .trusted-device-label, .resend-code {
    font-size: 14px;
    color: #272D30;
}

.resend-code {
    display: flex;
    align-items: center;
    gap: 7px;
}

.error-banner {
    display: flex;
    align-items: center;
    background: #FEF2F2;
    border: 1px solid #D8D8D8;
    border-radius: 3px;
    margin-bottom: 20px;
    list-style: none;
}

.error-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 15px;
}

.error-icon {
    background-color: #D93025;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
    flex-shrink: 0;
}

.error-text-wrapper {
    background-color: #FFFFFF;
    padding: 15px;
    flex: 1;
}

.error-banner strong {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #1E293B;
    font-size: 16px;
    line-height: 1.4;
}

.error-banner p {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.error-banner a {
    color: #475569;
    text-decoration: underline;
}

#check-email-area {

    h2{
        font-size: 29px;
        color: #272D30;
        font-weight: 500;
    }

    p {
        color: #272D30;
        line-height: 21px;
        font-weight: 400;
    }

    a {
        color: #3F8F24;
        line-height: 21px;
        font-weight: 400;
        padding-left: 3px;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }
}

/* Toast Notification Styles */

#toast-notification {
    position: fixed;
    background-color: #272D30;
    color: white;
    width: 367px;
    height: 48px;
    padding: 0 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    justify-content: flex-start;
    box-sizing: border-box;

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: none;
}

#toast-notification.toast-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#toast-notification.toast-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-icon {
    width: 24px;
    height: 24px;
}

#toast-notification span {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 20px;
}

/* End of Toast Notification Styles */
