@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 {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

.page-container {
    --bs-primary: #3F8F24;
    max-width: 500px;
    min-height: 757px;
    margin: 24px auto;
    display: flex;
    flex-direction: column;
    padding: 65px 60px 50px 50px;
    border-radius: 4px !important;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    color: #000000;
    text-decoration: underline!important;
}

.text-primary {
    color: #722281 !important; /* VMS Primary Color */
}

.text-body {
    color: #272D30 !important;
    line-height: 21px;
    font-size: 14px;
}

.btn-primary {
    color: #FFFFFF;
    background-color: #722281;
    border: 1px solid transparent;
    font-family: 'Proxima Nova';
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.25px;
    padding: 8px 12px;
}

.btn-primary:hover, .btn-primary:focus {
    background: #722281;
    border-color: #722281;
    opacity: 0.8;
    box-shadow: none;
    text-decoration: none !important;
}

.btn-primary:disabled, .btn-primary.disabled {
    background-color: #E9EAEA;
    border-color: #E9EAEA;
    color: #A9ABAC;
}

.form-group.floating {
    position: relative;
    margin-top: 24px;
}

.form-group.floating .form-control {
    width: 100%;
    padding: 16px 18.5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    outline: none;
}

.form-group.floating .form-control:focus {
    box-shadow: none;
    border-color: #722281;
}

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

.form-group.floating .form-control:focus + .form-label {
    color: #722281;
}

.form-group.floating .form-control:focus + .form-label,
.form-group.floating .form-control:not(:placeholder-shown) + .form-label {
    top: -9px;
    font-size: 12px;
}

/* Default: hide error message */
.error-message {
    display: none;
}

/* Apply red styles if input is invalid after interaction */
.form-group.floating.invalid .form-control {
    border-color: #EA1D35;
    color: #EA1D35;
}

.form-group.floating.invalid .form-label {
    color: #EA1D35!important;
}

.form-group.floating.invalid .error-message {
    display: block;
    color: #EA1D35;
    font-size: 12px;
    line-height: 18px;
    margin-top: 4px;
    padding-left: 16px;
}


.material-symbols-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
}

.custom-alert {
    display: flex;
    align-items: center;
    border: 1px solid #a9abac;
    border-radius: 4px;
    margin-bottom: 48px;
    background-color: #feebec;
}

.custom-alert__icon {
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-alert__icon .material-symbols-outlined {
    font-size: 34px;
    color: #dc3545;
}

.custom-alert__content {
    background-color: #ffffff;
    padding: 12px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.custom-alert__content h5 {
    margin-bottom: 12px;
    font-weight: 600;
    color: #272d30;
}

.custom-alert__content p {
    margin: 0;
    color: #272d30;
    font-size: 14px;
    line-height: 21px;
}

.custom-alert__title {
    font-size: 20px;
    font-weight: 700;
    color: #272D30;
    margin: 0;
    line-height: 20px;
}

.custom-alert__message {
    font-size: 14px;
    font-weight: 400;
    color: #272D30;
    margin: 0;
    line-height: 21px;
}

.custom-alert__content a {
    color: #000000;
    text-decoration: underline;
}

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

/* Hide Safari password auto-fill button (prevents duplicate eye icon) */
input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7D8183; /* Default */
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.password-toggle:focus {
    outline: 2px solid #5C5CFF;
    outline-offset: 2px;
    border-radius: 2px;
}

.password-toggle:hover {
    color: #272D30;
}

.password-toggle.active {
    color: #272D30; /* When password is visible */
}


.forgot-password-link {
    margin-top: 12px;
    margin-bottom: 24px;
}

.forgot-password-link a {
    font-size: 14px;
}

.forgot-password-instructions {
    color: #272D30;
}

/* Logo spacing */
.logo-container {
    margin-bottom: 60px;
}

.logo {
    width: 122px;
    height: 32px;
}

/* Footer styles */
.footer-nav {
    border-color: #7D8183 !important;
    margin-left: -25.5px;
    margin-right: -25.5px;
    padding: 12px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-nav a {
    font-size: 14px;
    margin-right: 4px;
    color: #272D30;
}

.footer-nav a:last-child {
    margin-right: 0;
}

/* Language Selector Styles - Footer */
.language-selector-footer {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    position: relative;
    outline: none;
}

/* Custom Language Selector Container */
.custom-language-selector {
    position: relative;
    outline: none;
}

/* Language Selector Trigger Button */
.language-selector-trigger {
    width: 43px;
    height: 24px;
    font-size: 14px;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 400;
    color: #272D30;
    padding: 0 18px 0 4px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    text-decoration: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23272D30' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 8px 5px;
    line-height: 24px;
    display: flex;
    align-items: center;
}

.language-selector-trigger:hover {
    text-decoration: underline;
    color: #272D30;
}

.language-selector-trigger:focus {
    outline: 2px solid #722281;
    outline-offset: 2px;
    border-radius: 2px;
}

.language-selector-trigger[aria-expanded="true"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23272D30' d='M5 0L10 6H0z'/%3E%3C/svg%3E");
}

/* Language Selector Dropdown */
.language-selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
    background-color: #FFFFFF;
    border: none !important;
    border-radius: 4px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    margin-top: 4px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    padding: 5px 0;
    outline: none !important;
}

.language-selector-dropdown.open {
    display: flex;
    outline: none !important;
}

.language-selector-dropdown:focus,
.language-selector-dropdown:focus-within {
    outline: none !important;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* Language Option Button */
.language-option {
    width: 100%;
    border: none;
    background-color: transparent;
    cursor: pointer;
    text-align: left;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    line-height: 18px;
    color: #272D30;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.15s ease;
    outline: none;
    padding-left: 10px;
}

.language-option:hover,
.language-option.selected:hover {
    background-color: #F5F5F5;
}

.language-option:focus {
    outline: 2px solid #722281;
    outline-offset: -2px;
    background-color: #F5F5F5;
}

.language-option.selected {
    background-color: transparent;
}

/* Language Code (Bold) */
.language-option .language-code {
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0px;
    min-width: 20px;
    display: inline-block;
}

/* Language Name (Regular) */
.language-option .language-name {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0px;
}

.header {
    color: #272D30;
    font-size: 29px;
    font-style: normal;
    font-weight: 400;
    line-height: 35px;
    margin-bottom: 12px;
}

.login-form {
    margin-bottom: 51px;
}

#reset-submit, #verify-submit {
    margin-top: 24px;
}


p {
    margin-bottom: 24px;
}

/* Toast Notification Styles */
#toast-notification {
    position: fixed;
    background-color: #272D30;
    color: white;
    min-width: 367px;
    max-width: 600px;
    width: auto;
    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;
    white-space: nowrap;

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

#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;
    white-space: nowrap;
}

.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 */

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

.toast.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

/* Secondary Button Styles */
.btn-secondary {
    color: #272D30;
    background-color: #FFFFFF;
    border: 1px solid #DAD7D9;
    font-family: 'Proxima Nova';
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.25px;
    padding: 8px 12px;
    text-decoration: none;
    display: inline-block;
    border-radius: 0.375rem;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #F5F5F5;
    border-color: #DAD7D9;
    color: #272D30;
    text-decoration: none !important;
}

/* Button Group Styles */
.button-group {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

/* Forgot Password Form Spacing */
.forgot-password-form .mb-5 {
    margin-bottom: 48px !important;
}

.language-selector-footer {
    margin-left: 0 !important;
}

/* Check Email Page Styles */
.check-email-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 389px;
}

.check-email-header-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-email-header-section .header {
    margin-bottom: 0;
}

.check-email-text {
    color: #272D30;
    font-size: 16px;
    line-height: 21px;
    margin: 0;
    white-space: pre-wrap;
}

.didnt-get-it-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.didnt-get-it-text {
    color: #272D30;
    font-size: 16px;
    line-height: 21px;
}

.back-to-login-button {
    margin-top: 0;
}

.back-to-login-button .btn {
    width: auto;
    display: inline-block;
}

/* VMS Link Button (for resend links, etc.) */
.vms-link-button {
    color: #722281;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    line-height: inherit;
}

.vms-link-button:hover {
    text-decoration: underline;
    color: #722281;
}

.vms-link-button:focus {
    outline: 2px solid #722281;
    outline-offset: 2px;
    border-radius: 2px;
}

.vms-link-button:disabled {
    color: #7D8183;
    cursor: not-allowed;
    text-decoration: none;
}

/* Custom Checkbox Styling for VMS */
.form-check-input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1.5px solid #7D8183;
    border-radius: 2px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #FFFFFF;
    position: relative;
    margin-top: 0.15rem;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #722281;
    border-color: #722281;
}

.form-check-input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check-input[type="checkbox"]:focus {
    outline: 2px solid #722281;
    outline-offset: 2px;
    box-shadow: none;
}

.form-check-label {
    color: #272D30;
    font-size: 14px;
    line-height: 21px;
    cursor: pointer;
    margin-left: 8px;
}

/* Resend link section */
.resend-link {
    color: #272D30;
    font-size: 14px;
    line-height: 21px;
}

/* MFA Description text */
.mfa-description {
    color: #272D30;
    font-size: 16px;
    line-height: 21px;
    margin-bottom: 24px;
}

/* MFA Form */
.mfa-form {
    color: #272D30;
}
