﻿/* General styles */
/* Ensure Roboto is the default for every element; UI controls inherit this too */
:root {
    --ui-font-family: 'Roboto', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: var(--ui-font-family);
}

/* Make all elements inherit the default UI font (covers pseudo-elements too) */
*, *::before, *::after {
    font-family: inherit;
}

/* Ensure form controls inherit the page font (some browsers use a different default) */
input, button, textarea, select {
    font-family: inherit;
}

/* Background styles */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: url('../images/mosai-background.svg');
    background-size: cover;
    background-repeat: no-repeat;
}

.background-container {
    width: 100%;
    height: 40vh;
    /* keep the container for spacing/positioning but make it transparent so the page background shows through */
    background: transparent;
}

/* Login container */
.login-container {
    background-color: white;
    padding: 24px; /* increased padding to match mock */
    border-radius: 14px; /* slightly larger radius */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
    max-width: 460px; /* wider to match mock proportions */
    min-wadth: 400px;
    width: 100%;
    margin-top: -16vh;
    z-index: 1;
    position: relative;
}

    /* Logo */
    .login-container img {
        display: block;
        margin: 0 0 0.75em 0;
        height: 40px;
        width: 150px;
    }

    /* Form styles */
    .login-container form {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .login-container label {
        margin-bottom: -2px;
        font-weight: normal;
        font-size: 14px !important;
        color: var(--neutral-neutral-700);
    }

    .login-container input[type="email"],
    .login-container input[type="password"],
    .login-container input[type="text"] {
        padding: 0.65em;
        margin: 0.3em 0;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 0.875em;
        width: 100%;
    }

        .login-container input[type="email"]:focus,
        .login-container input[type="password"]:focus,
        .login-container input[type="text"]:focus {
            border-color: var(--accent-primary-dark);
            outline: none;
        }

    .login-container .btn {
        background-color: var(--accent-primary);
        color: #fff;
        border: none;
        padding: 0.7em;
        margin: 1em 0;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.875em;
        font-weight: 550;
        transition: background-color 0.15s ease, transform 0.15s ease;
        /* iOS Safari: remove tap highlight */
        -webkit-tap-highlight-color: transparent;
        -webkit-appearance: none;
        -webkit-user-select: none;
    }

        /* Hover state */
        .login-container .btn:hover {
            background-color: var(--accent-primary-dark);
        }

        /* Pressed state */
        .login-container .btn:active {
            background-color: var(--accent-primary-darker);
            transform: scale(0.97); /* optional "pressed in" effect */
        }

        /* Focus for keyboard users */
        .login-container button:focus,
        .login-container button:focus-visible {
            outline: none; /* remove default outline */
            box-shadow: none; /* remove any box-shadow */
            background-color: var(--accent-primary-dark); /* keep it consistent with hover if you like */
        }

        /* Firefox removes an inner border on focused buttons */
        .login-container button::-moz-focus-inner {
            border: 0;
            padding: 0;
        }

/* Support link */
a.contact-support-link {
    color: var(--accent-primary);
    text-decoration: none;
    font: var(--font-regular);
    font-size: 0.9em;
    font-weight: 600;
    display: flex;
    justify-content: flex-end;
}

    a.contact-support-link:hover {
        color: var(--accent-primary-dark);
        text-decoration: underline;
    }

/* Footer styles */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: left;
    padding: 1em 0;
    font-size: 12px;
    color: #fff; /* make footer text white */
}

    footer p {
        margin: 0;
        padding: 0 2em;
        /* color removed to inherit white from footer */
    }

    footer a {
        color: #fff; /* ensure links in footer are white */
        text-decoration: underline;
    }

:root {
    --secondary-secondary: #719949;
    --magenta: #7A214F;
    --secondary-secondary-lighter: #F2FAE9;
    --secondary-secondary-light: #E7F4D5;
    --secondary-secondary-dark: #4D6E27;
    --neutral-neutral-50: #f7f7f7;
    --neutral-neutral-100: #f2f2f2;
    --neutral-neutral-200: #ececec;
    --neutral-neutral-300: #e3e3e3;
    --white: #fff;
    --neutral-neutral-500: #afafb2;
    --neutral-neutral-400: #c9cacd;
    --neutral-neutral-900: #262526;
    --neutral-neutral-800: #454243;
    --neutral-neutral-700: #626262;
    --neutral-neutral-600: #74777a;
    --accent-primary-darker: #0E4174;
    --accent-primary-dark: #17598E;
    --accent-primary-dark-filter: invert(22%) sepia(61%) saturate(1242%) hue-rotate(154deg) brightness(50%) contrast(101%);
    --accent-primary: #256BA2;
    --accent-primary-filter: brightness(0) saturate(100%) invert(21%) sepia(80%) saturate(5067%) hue-rotate(177deg) brightness(0%) contrast(102%);
    --accent-primary-light: #D9E7F5;
    --accent-primary-lighter: #EBF6FF;
    --special-info-info-lighter: #F1FDFF;
    --special-info-info: #0B7B8F;
    --special-info-info-light: #F1FDFF;
    --special-info-info-dark: #153566;
    --special-warning-warning-lighter: #FFECCC;
    --special-warning-warning-light: #FFF8EB;
    --special-danger-danger-lighter: #FFEBE7;
    --special-danger-danger: #D73B24;
    --special-danger-danger-light: #FFF6F4;
    --special-danger-danger-dark: #A82714;
    --special-warning-warning-dark: #74130B;
    --special-success-success: #048565;
    --special-success-success-dark: #02503D;
    --special-success-success-lighter: #CDE7E0;
    --special-success-success-light: #E6F3F0;
    --special-warning-warning: #E46F00;
    --special-success-intermediate-intermediate-lighter: #fef9ed;
    --special-success-intermediate-intermediate-light: #fbeacb;
    --special-success-intermediate-intermediate: #efaf33;
    --special-success-intermediate-intermediate-dark: #3d2a06;
    --special-intermediate-intermediate-lighter: #fef9ed;
    --special-intermediate-intermediate-light: #fbeacb;
    --special-intermediate-intermediate: #efaf33;
    --special-intermediate-intermediate-dark: #3d2a06;
    --font-regular: url(../fonts/roboto_regular.woff);
    --font-medium: url(../fonts/roboto_medium.woff);
    --font-italic: url(../fonts/roboto_medium_italic.woff);
    --font-bold: url(../fonts/roboto_bold.woff);
}

/* General reset for focus styles */
:focus {
    outline: none;
    box-shadow: none !important;
}

/* Modal styles (consolidated) */
.modal-content {
    padding: 0.75em;
    border-radius: 8px;
    box-shadow: none; /* Remove boxed shadow */
    max-height: 90vh; /* Limit the modal height */
    overflow-y: auto; /* Enable vertical scrolling */
    background-color: white; /* Ensure modal background is white */
}

.modal-header {
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header .close {
        font-size: 2em; /* Make the 'X' larger */
        line-height: 1;
        background: none;
        border: none;
        color: var(--neutral-neutral-900);
    }

        .modal-header .close:hover {
            color: var(--accent-primary-dark); /* Change color on hover */
        }

.modal-title {
    font-size: 1.4em;
    font-weight: bold;
}

[contentEditable=true]:empty:not(:focus):before {
    content: attr(data-text)
}

/* Styles for form elements with a value */
.modal-body .form-group input:not(:placeholder-shown),
.modal-body .form-group textarea:not(:placeholder-shown),
.modal-body .form-group .custom-select.has-value {
    border-color: var(--accent-primary-dark) !important;
    background-color: white;
}

.modal-body p {
    margin-bottom: 1em;
    font-size: 0.9em;
    color: var(--neutral-neutral-700);
}

.modal-body .form-group {
    margin-bottom: 1em;
}

    .modal-body .form-group input, .modal-body .form-group select, .modal-body .form-group textarea {
        width: 100%;
        padding: 0.5em;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 0.9em;
    }

    .modal-body .form-group label {
        font-size: 0.9em;
        color: var(--neutral-neutral-700);
        margin-bottom: 0.5em;
        display: block;
    }

.modal-body .btn {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75em;
    border-radius: 8px;
    cursor: pointer;
    font: var(--font-regular);
    font-size: 0.9em;
}

    .modal-body .btn:hover {
        background-color: var(--accent-primary-dark);
    }

/* Error styles */
.error-message {
    color: var(--special-danger-danger);
    font-size: 0.9em;
    margin-bottom: 0.5em;
}

/* Modal adjustments */
.modal-dialog {
    max-width: 600px;
    margin: 1.5rem auto;
}

.modal-body {
    overflow-y: auto; /* Ensure the modal body scrolls if content is too long */
    max-height: 70vh; /* Adjust as needed to prevent excessive scrolling */
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.5em;
    cursor: pointer;
    color: var(--neutral-neutral-700);
    background-color: white;
}

.selected-option {
    font-size: 0.9em;
    color: var(--neutral-neutral-700);
}

.options-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.option {
    padding-top: 0.4em;
    padding-left: 0.75em;
    padding-bottom: 0.4em;
    cursor: pointer;
    background-color: white;
    font-size: 0.9em;
}

    .option:hover {
        background-color: var(--accent-primary);
        color: white;
    }

/* Toast Styles */
.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    width: auto;
    z-index: 1050;
}

.toast-failure-body {
    background-color: #FDEDEC;
    border-radius: 8px;
}

.support-response-text {
    font-size: 14px;
    font-weight: 500;
}

.support-submit-success {
    color: darkgreen;
    font-size: medium;
    font-weight: bold;
}

.support-success-icon {
    fill: darkgreen;
    margin-right: 5px;
    margin-top: -5px;
}

.support-submit-failure {
    color: darkred;
    font-size: medium;
    font-weight: bold;
}

.support-failure-icon {
    fill: darkred;
    margin-right: 5px;
    margin-top: -5px;
}


.DangerExpiredDescription {
    height: 72px;
    align-self: stretch;
    flex-grow: 0;
    font-family: Roboto;
    font-size: 14px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.29;
    letter-spacing: -0.14px;
    text-align: left;
    color: var(--special-danger-danger);
}

.DangerNotification {
    height: 70px;
    margin-bottom: 20px;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    border: solid 1px var(--special-danger-danger-light);
    background-color: var(--special-danger-danger-lighter);
}

.DangerNotification2 {
    height: 95px;
    margin-bottom: 20px;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    border: solid 1px var(--special-danger-danger-light);
    background-color: var(--special-danger-danger-lighter);
}

.DangerIcon {
    width: 16.7px;
    height: 16.7px;
    margin-right: 10px;
    border: var(--special-danger-danger);
}

.position-relative {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 70%;
    right: 0.75rem; /* adjust to align just inside the input */
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}

    .password-toggle svg {
        display: block;
    }

.Select-Product {
    height: 30px;
    flex-grow: 1;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: left;
    color: #262526;
    display: block;
    margin-top: 4px;
}

.Button-label {
    width: auto;
    height: 22px;
    flex-grow: 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    text-align: left; /* left align so it looks like link text */
    color: #17598e;
}

.Button-label.option-link {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

/* Options panel styles (refined for centered rows and flush separators) */
.options-panel {
    margin-top: 1em;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #e6eaee;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
    overflow: hidden;
}

/* Ensure forms are full width and separators are drawn edge-to-edge inside the inner padding */
.options-panel form {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Separator between rows: drawn on the form element so it spans the full inner width */
.options-panel form:not(:last-of-type) {
    border-bottom: 1px solid #e6eaee;
}

/* Row content: use a fixed row height and flex centering to vertically center text between separators */
.options-panel .option-link {
    display: flex !important;
    align-items: center;
    width: 100%;
    height: 44px; /* consistent row height */
    padding: 0 12px; /* horizontal padding only (vertical centering via height + align-items) */
    color: #17598e;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
}

.options-panel .option-link:hover,
.options-panel .option-link:focus {
    background-color: #f5f7f9;
    text-decoration: underline;
    outline: none;
}

.options-panel .option-link:active {
    background-color: #eef2f5;
}

/* Small responsive tweak: center Login-Box inside login-container area */
@media (min-width: 480px) {
  .Login-Box { margin: 0 auto 24px; }
}

/* Zeplin provided styles for SelectProduct layout */
.Login-Box {
  width: 400px;
  /* height removed to allow content to size naturally */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  margin: 0 auto 24px; /* center horizontally, add bottom spacing */
  padding: 0;
}

.Formerly-Forcura-Medalogix {
  height: 17px;
  align-self: stretch;
  flex-grow: 0;
  font-size: 12px;
  font-weight: normal;
  font-style: italic;
  line-height: 1.4;
  text-align: left;
  color: #808387;
}

.Frame-209 {
  height: 58px;
  align-self: stretch;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4px;
  padding: 0;
  margin-bottom: 18px;
}


.login-panel {
    margin-top: 1em;
}

.Frame-209 img {
    margin-bottom: 0;
}

.brand-logo {
    margin-bottom: 0px;
}

.margin-bottom-0 {
    margin-bottom: 0px;
}

.margin-top-16 {
    margin-top: 16px;
}