@font-face {
    font-family: 'Inter';
    font-style: normal;
    src: url("css/fonts/Inter-VariableFont_opsz,wght.ttf") format('truetype');
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    color: #2f3c44;
    background:#eceff1
}

body, select, input, textarea {
    font-family: 'Inter', Calibri, Carlito, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

form {
    margin: 0
}

img {
    border: 0
}

img[src~="1.gif"] {
    display: block;
}

img.px {
    width: 1px;
    height: 1px;
    visibility: hidden
}

td {
    text-align: left
}

input {
    outline: none
}

.wrapper {
    display: flex;
    flex-direction: column;
    color: #2f3c44;
    text-align: center;
    width: 100%;
    min-height: 100%;
    margin: auto;
    background: #eceff1;
    padding-top: 24px;
}

.logo {
    text-align: center;
    padding: 75px 0 15px 0
}

.shadow-a {
    box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.1);
}

.shadow-b {
    box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.13)
}

.loginform-wrapper {
    width: auto;
    margin: 0 auto;
    border: 2px solid #E8ECED;
    background: #ffffff;
    min-width: 320px;
}

.loginform {
    padding: 40px 60px 15px;
    text-align: center;
}

.presentation-table tr {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
}

.input .form-input, .input .form-select {
    width: 100%;
    padding: 7px 10.5px;
    border: 1px solid #8A96A6;
    border-radius: 6px;
    background: white;
    box-shadow: 0 1px 2px 0 rgba(18, 18, 23, 0.05);
    color: #334155;
}

.input .form-input:focus, .input .form-select:focus {
    outline: none;
    border-color: #00498B;
    box-shadow: 0 1px 2px 0 rgba(18, 18, 23, 0.05);
}

.input .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 18px;
}

.field {
    text-align: left;
    color: #334155;
    font-weight: 500;
    margin-bottom: 4px;
}

.submit-button {
    font-weight: 500;
    font-size: 15px;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 5px 0;
    background: #00498B;
    width: 100%
}

.submit-button:hover {
    background: #003E76
}

.submit-button:active, .submit-button:focus {
    background: #003361
}

.submit-button:disabled {
    opacity: 0.7;
}

.submit-button, .secondary-button, input[type="radio"], input[type="checkbox"] {
    cursor: pointer
}

.secondary-button {
    font-weight: 500;
    font-size: 15px;
    color: #00498B;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 5px 0;
    background: #FFFFFF;
    border: 1px solid #91B1CD;
    width: 100%;
    transition: all 0.2s linear;
}

.secondary-button:hover, .secondary-button:focus {
    background: #003361;
    border-color: #003361;
    color: #fff;
}

.form-radio[type="radio"] {
    border: 1px solid #8A96A6;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    margin: 0px 6px;
}

.form-radio[type="radio"]:checked {
    background-color: #00498B;
    border-color: #00498B;
}

.form-radio[type="radio"]:checked::after {
    content: '';
    width: 9px;
    height: 9px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-radio[type="radio"]:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 1px #00498B;
}

.form-radio[type="radio"]:checked:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 1px #00498B;
}

a {
    color: #306CA1;
    text-decoration: underline;
}

a:visited {
    color: #003361;
}

a:active {
    color: #003E76;
}

a:hover, a:focus {
    color: #00498B;
}

.center {
    display: flex;
    align-items: flex-end;
    align-self: center;
    flex-grow: 2;
    padding: 10px 10px 20px;
    font-size: 14px;
    line-height: 130%;
    color: #2f3c44;
}

.system {
    display: inline-block;
    width: auto;
    margin: 0 auto 10px;
    text-align: center;
    color: red;
    padding: 15px;
    font-size: 14px;
    border: 1px solid #ebadad;
    background: #FFD3D3;
    min-width: 375px
}

.system ul {
    padding-left: 15px;
    margin: 5px;
    font-size: 12px
}

.info {
    display: inline-block;
    width: auto;
    margin: 0 auto 10px;
    text-align: center;
    color: #333;
    padding: 15px;
    font-size: 14px;
    background: #ffffff
}

.delimiter {
    background-color: #A0A0A0;
    padding: 0
}

.SIErrorMessage {
    color: #FF0000;
}

.loginform-wrapper .loginform .SIErrorMessage {
    color: #991B1B;
    border: 1px solid #FECACA;
    background-color: #FEF2F2;
    padding: 12px;
}

.pointable {
    cursor: pointer
}

/* Old Login page */

.input input, .input select {
    width: 182px;
    padding: 3px;
    margin: 0;
    border: 1px solid #8d8d8d;
    border-radius: 3px;
    transition: box-shadow 0.5s;
}

.input select {
    width: 190px
}

.input input:focus, .input select:focus {
    border-color: #999;
    box-shadow: 0 0 10px rgba(50, 50, 50, 0.2)
}

.submit {
    font-weight: bold;
    font-size: 15px;
    color: #fff;
    padding: 6px 35px;
    border-radius: 5px;
    margin: 5px 0;
    border: none;
    background: #112e50;
    transition: background 0.3s, box-shadow 0.3s;
}

.submit:hover, .submit:active {
    background: #1a477a
}

.submit-small {
    font-size: 14px;
    padding: 4px 15px;
}

.submit, input[type="radio"], input[type="checkbox"], label {
    cursor: pointer
}

/* Old login page support end */

/* Old SoD compatibility */
.plaintxt {
    color: #000000;
    font-style: normal;
    padding: 10px 10px 10px 10px;
    font-weight: normal;
    font-size: 16px;
    line-height: 130%;
    font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
}

.sh_EITitle {
    font-size: 16pt;
    color: #A07527;
    font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
}

.back-link-button {
    display: flex;
    align-items: center;
    border: unset;
    padding: unset;
    background: unset;
    text-decoration: underline;
    color: #306CA1;
    cursor: pointer;
}

.back-link-button:visited {
    color: #003361;
}

.back-link-button:active {
    color: #003E76;
}

.back-link-button:hover, .back-link-button:focus {
    color: #00498B;
}
/* Toggle Button CSS */
.toggle-group {
    display: flex;
    background-color: #F1F5F9;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #cbd5e0;
    width: 100%;
}

.toggle-option {
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #334155;
    transition: background 0.3s, color 0.3s;
    width: 100%;
    border: unset;
    background-color: unset;
    position: relative;
}

.toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.toggle-option-content {
    padding: 4px 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    gap: 4px;
}

.toggle-option .icon {
    fill: #334155;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    border: 1px solid transparent;
}

.toggle-option input[type="radio"]:checked + .toggle-label {
    background-color: white;
    color: #00498B;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-option input[type="radio"]:checked + .toggle-label .icon,
.toggle-option input[type="radio"]:focus + .toggle-label .icon,
.toggle-option input[type="radio"]:hover + .toggle-label .icon {
    fill: #00498B;
}

.toggle-option input[type="radio"]:hover + .toggle-label {
    background-color: #ffffff;
    color: #00498B;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.toggle-option input[type="radio"]:focus + .toggle-label {
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border-color: #00498B;
    color: #00498B;
}

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

/* Custom Checkbox Styles */
.checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    padding: 4px;
    gap: 6px;
}

.checkbox-wrapper.disabled {
    cursor: not-allowed;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-box {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 1px solid #8A96A6;
    border-radius: 4px;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label {
    color: #2d3748;
    font-size: 14px;
    transition: color 0.3s ease;
}

/* Check Icon */
.check-icon {
    opacity: 0;
    transition: all 0.1s ease;
    fill: #FFFFFF;
}

/* Hover State */
.checkbox-wrapper:hover .checkbox-box {
    border-color: #003E76;
    background-color: #FFFFFF;
}

.checkbox-wrapper:hover .checkbox-label {
    color: #1a202c;
}

/* Focus State - Keyboard Navigation */
.checkbox-input:focus-visible + .checkbox-box {
    outline: 1px solid #00498B;
    outline-offset: 2px;
}

/* Active State - While Clicking */
.checkbox-wrapper:active .checkbox-box {
    transform: scale(0.95);
    background-color: #003E76;
}

/* Checked State */
.checkbox-input:checked + .checkbox-box {
    background-color: #00498B;
    border-color: #00498B;
}

.checkbox-input:checked + .checkbox-box .check-icon {
    opacity: 1;
    transform: scale(1.5);
}

/* Checked + Hover */
.checkbox-wrapper:hover .checkbox-input:checked + .checkbox-box {
    background-color: #00498B;
    border-color: #00498B;
}

/* Checked + Focus */
.checkbox-input:checked:focus-visible + .checkbox-box {
    outline: 1px solid #00498B;
    outline-offset: 2px;
}

/* Disabled State */
.checkbox-input:disabled + .checkbox-box {
    background-color: #E2E8F0;
    border-color: #8A96A6;
    cursor: not-allowed;
}

.checkbox-input:disabled + .checkbox-label {
    color: #8A96A6;
}

.checkbox-input:disabled:hover + .checkbox-box {
    background-color: #E2E8F0;
    border-color: #8A96A6;
}

/* Disabled + Checked */
.checkbox-input:checked:disabled + .checkbox-box {
    background-color: #E2E8F0;
    border-color: #8A96A6;
}

@media screen and (max-width: 600px) {
    body, .wrapper { background: #fff }
    .wrapper {
        padding-top: unset;
    }
    .logo {
        padding: unset;
    }
    .loginform-wrapper { border:none; margin-top: 30px }
    .loginform, .loginform-wrapper { border: none; box-shadow: none !important; background: none }
    .loginform {
        padding: unset;
    }
}
