@import 'authMedia.css';

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.login-page {
    background: #eeede5;
    margin-top: 60px;
}

.login-page .error {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 10px;
    background: #ff0000;
    padding: 0px 15px;
    border-radius: 5px;
}

.login-page .error.success {
    background:#ffffff;
    background: #fff;
    color: #00b418;
    text-align: center;
}

.login-page .error a {
    color: #ffffff;
}

.login-box {
    width: 500px;
    height: 80vh;
    margin: 0 auto;
}

.login-box input[type="checkbox"] {
    width: auto;
    margin-left: 0px;
}

.login-box label {
    margin-left: 20px;
}

.login-box-msg {
    margin: 0;
    padding: 0 20px 20px;
    text-align: center;
    font-size: 16px;
}

.login-logo {
    font-size: 2.1rem;
    font-weight: 300;
    margin-bottom: 0.9rem;
    text-align: center;
}

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

.login-box>.card {
    width: 80%;
    margin: 0 auto;
}

.login-card-body {
    background-color: #fff;
    border-top: 0;
    color: #666;
    padding: 20px;
}

.login-box.twoFactorCheck,
.login-box.userType {
    width: 50%;
}

.login-box.twoFactorCheck h1,
.login-box.userType h1 {
    font-size: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.login-box.userType ul {
    list-style: none;
    padding-left: 0px;
    padding-top: 15px;
}

.login-box.userType ul li {
    border: 1px solid #cccccc;
    width: 50%;
    margin: 0 auto;
    margin-bottom: 15px;
    padding: 10px;
    background: #556fb4;
    color: #ffffff;
}

.login-box.userType ul li:hover {
    background: #ffcd03;
    color: #556fb4;
    cursor: pointer;
}

.alignleft {
    text-align: left;
}

.alignright {
    text-align: right;
}

.login-box.twoFactorCheck .btn {
    width: 200px;
}

.login-box.twoFactorCheck .alignright .btn {
    float: right;
}

.recoverPassword {
    margin:0 auto;
}

.recoverPassword a {
    text-align: center;
    margin-top: 30px;
    color: #495057;
    width:100%;
}

.auth-locale-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px 0;
}

.auth-locale-switcher a,
.auth-locale-switcher span {
    border: 1px solid #556fb4;
    border-radius: 999px;
    color: #556fb4;
    font-size: 13px;
    padding: 5px 12px;
    text-decoration: none;
}

.auth-locale-switcher .is-active {
    background: #556fb4;
    color: #fff;
}

@media screen and (max-width:784px) {

    .login-box.twoFactorCheck,
    .login-box.userType {
        width: 100%;
    }


    .login-box.userType ul li {
        width: 100%;
    }


}

/* Login redesign — aligned with the public landing page design system. */
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway/Raleway-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway/Raleway-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway/Raleway-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

.auth-login-page {
    --auth-ink: #102046;
    --auth-ink-soft: #314365;
    --auth-muted: #71809a;
    --auth-line: rgba(18, 35, 74, 0.18);
    --auth-gold: #f4b91f;
    --auth-gold-deep: #d79f00;
    --auth-blue: #4f6fc6;
    background: #ffffff;
    color: var(--auth-ink);
    font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0 !important;
    min-height: 100vh;
}

.auth-login-page main {
    min-height: 100vh;
    position: relative;
}

.auth-login-page .auth-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.auth-login-page .auth-brand-panel {
    background: #fbf7ed url("../imgs/auth-login-background.png") center / cover no-repeat;
    min-height: 100vh;
    overflow: hidden;
    padding: 68px clamp(44px, 6vw, 88px);
    position: relative;
}

.auth-login-page .auth-brand-logo {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.auth-login-page .auth-brand-logo img {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    width: clamp(240px, 23vw, 330px);
}

/* Compensate for transparent padding baked into each logo asset. */
.auth-login-page .auth-brand-logo img[src$="logo-en.png"] {
    transform: translateX(-6.94%);
}

.auth-login-page .auth-brand-logo img[src$="logoV1.png"] {
    transform: translateX(-4.21%);
}

.auth-login-page .auth-welcome-copy {
    left: clamp(44px, 6vw, 88px);
    max-width: 560px;
    position: absolute;
    right: clamp(44px, 6vw, 88px);
    top: 42%;
    z-index: 1;
}

.auth-login-page .auth-welcome-copy h1 {
    color: var(--auth-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 4.6vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0;
}

.auth-login-page .auth-welcome-accent {
    background: var(--auth-gold);
    display: block;
    height: 4px;
    margin: 46px 0 30px;
    width: 76px;
}

.auth-login-page .auth-welcome-copy p {
    color: var(--auth-ink);
    font-size: clamp(1.05rem, 1.5vw, 1.45rem);
    line-height: 1.55;
    margin: 0;
}

.auth-login-page .auth-form-panel {
    align-items: center;
    background: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 188px clamp(44px, 4.5vw, 70px) 72px;
}

.auth-login-page .auth-form-wrap {
    max-width: 590px;
    width: 100%;
}

.auth-login-page .auth-locale-switcher {
    gap: 12px;
    justify-content: flex-end;
    padding: 0;
    position: absolute;
    right: clamp(40px, 4.5vw, 72px);
    top: clamp(42px, 5vw, 72px);
    z-index: 5;
}

.auth-login-page .auth-locale-switcher a,
.auth-login-page .auth-locale-switcher span {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--auth-blue);
    border-radius: 999px;
    color: var(--auth-blue);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-login-page .auth-locale-switcher a:hover {
    background: #f7f9fc;
    color: var(--auth-ink);
    text-decoration: none;
    transform: translateY(-1px);
}

.auth-login-page .auth-locale-switcher .is-active {
    background: var(--auth-blue);
    box-shadow: 0 8px 18px rgba(79, 111, 198, 0.2);
    color: #ffffff;
}

.auth-login-page .auth-login-form {
    margin: 0;
}

.auth-login-page .auth-field {
    margin-bottom: 50px;
}

.auth-login-page .auth-field > label {
    color: var(--auth-ink);
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 14px;
}

.auth-login-page .auth-control {
    position: relative;
}

.auth-login-page .auth-control input {
    appearance: none;
    background: #ffffff;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    color: var(--auth-ink);
    font-family: inherit;
    font-size: 1rem;
    height: 76px;
    line-height: 1.3;
    outline: none;
    padding: 0 58px 0 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.auth-login-page .auth-control--password input {
    padding-right: 112px;
}

.auth-login-page .auth-control input::placeholder {
    color: #9ba6b8;
}

.auth-login-page .auth-control input:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 4px rgba(79, 111, 198, 0.12);
}

.auth-login-page .auth-control-icon {
    color: var(--auth-ink-soft);
    font-size: 1.15rem;
    pointer-events: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.auth-login-page .auth-control--password .auth-control-icon {
    right: 68px;
}

.auth-login-page .auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(18, 35, 74, 0.12);
    color: var(--auth-ink-soft);
    cursor: pointer;
    display: flex;
    font-size: 1.2rem;
    height: 100%;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
}

.auth-login-page .auth-password-toggle:hover {
    color: var(--auth-blue);
}

.auth-login-page .auth-password-toggle:focus-visible {
    border-radius: 0 10px 10px 0;
    box-shadow: inset 0 0 0 3px rgba(79, 111, 198, 0.22);
    outline: none;
}

.auth-login-page .auth-form-options {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 4px 0 54px;
}

.auth-login-page .auth-remember {
    align-items: center;
    display: flex;
    gap: 14px;
}

.auth-login-page .auth-remember input {
    accent-color: var(--auth-blue);
    border-radius: 5px;
    height: 27px;
    margin: 0;
    width: 27px;
}

.auth-login-page .auth-remember label {
    color: var(--auth-ink);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

.auth-login-page .auth-form-options a {
    color: #315ed8;
    font-size: 1rem;
    text-decoration: none;
}

.auth-login-page .auth-form-options a:hover,
.auth-login-page .auth-form-options a:focus-visible {
    color: var(--auth-ink);
    text-decoration: underline;
}

.auth-login-page .auth-submit,
.auth-login-page .auth-signup-link {
    align-items: center;
    border-radius: 10px;
    display: flex;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    height: 68px;
    justify-content: center;
    text-align: center;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.auth-login-page .auth-submit {
    background: var(--auth-gold);
    border: 1px solid var(--auth-gold-deep);
    box-shadow: 0 14px 28px rgba(244, 185, 31, 0.2);
    color: var(--auth-ink);
    cursor: pointer;
}

.auth-login-page .auth-submit:hover,
.auth-login-page .auth-submit:focus-visible {
    box-shadow: 0 16px 32px rgba(244, 185, 31, 0.3);
    filter: brightness(0.97);
    outline: none;
    transform: translateY(-1px);
}

.auth-login-page .auth-signup {
    margin-top: 46px;
}

.auth-login-page .auth-signup-divider {
    align-items: center;
    color: var(--auth-ink);
    display: flex;
    font-size: 1rem;
    gap: 18px;
    margin-bottom: 30px;
    text-align: center;
}

.auth-login-page .auth-signup-divider::before,
.auth-login-page .auth-signup-divider::after {
    background: rgba(18, 35, 74, 0.12);
    content: "";
    flex: 1;
    height: 1px;
}

.auth-login-page .auth-signup-link {
    background: #ffffff;
    border: 1px solid var(--auth-gold-deep);
    color: var(--auth-gold-deep);
    text-decoration: none;
}

.auth-login-page .auth-signup-link:hover,
.auth-login-page .auth-signup-link:focus-visible {
    background: #fffaf0;
    color: var(--auth-ink);
    outline: none;
    text-decoration: none;
    transform: translateY(-1px);
}

.auth-login-page .auth-alert {
    border-radius: 10px;
    font-size: 0.93rem;
    margin-bottom: 28px;
    padding: 14px 16px;
}

.auth-login-page .auth-alert ul {
    margin: 0;
    padding-left: 20px;
}

.auth-login-page .error.help-block {
    margin: -12px 0 24px;
}

.auth-recovery-page .auth-recovery-wrap {
    max-width: 590px;
}

.auth-recovery-page .auth-form-panel {
    align-items: flex-start;
    padding-top: 254px;
}

.auth-recovery-page .auth-recovery-form .auth-field {
    margin-bottom: 44px;
}

.auth-recovery-page .auth-recovery-return {
    margin-top: 50px;
}

.auth-two-factor-page .auth-form-panel {
    align-items: flex-start;
    padding-top: 210px;
}

.auth-two-factor-page .auth-two-factor-wrap {
    max-width: 590px;
}

.auth-two-factor-page .auth-two-factor-heading {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-bottom: 44px;
}

.auth-two-factor-page .auth-two-factor-badge {
    align-items: center;
    background: rgba(79, 111, 198, 0.11);
    border-radius: 50%;
    color: var(--auth-blue);
    display: flex;
    flex: 0 0 58px;
    font-size: 1.65rem;
    height: 58px;
    justify-content: center;
}

.auth-two-factor-page .auth-two-factor-heading h2 {
    color: var(--auth-ink);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 7px;
}

.auth-two-factor-page .auth-two-factor-heading p {
    color: var(--auth-muted);
    font-size: 0.96rem;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}

.auth-two-factor-page .auth-two-factor-form .auth-field {
    margin-bottom: 44px;
}

.auth-two-factor-page .auth-otp-control {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.auth-two-factor-page .auth-otp-input {
    appearance: none;
    background: #ffffff;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    color: var(--auth-ink);
    font-family: inherit;
    font-size: 1.55rem;
    font-weight: 600;
    height: 72px;
    outline: none;
    padding: 0;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.auth-two-factor-page .auth-otp-input:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 4px rgba(79, 111, 198, 0.12);
    transform: translateY(-1px);
}

.auth-two-factor-page .auth-two-factor-actions {
    border-top: 1px solid rgba(18, 35, 74, 0.12);
    margin-top: 42px;
    padding-top: 26px;
    text-align: center;
}

.auth-two-factor-page .auth-two-factor-actions > p {
    color: var(--auth-muted);
    display: inline;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.auth-two-factor-page .auth-resend-button {
    background: transparent;
    border: 0;
    color: #315ed8;
    cursor: pointer;
    display: inline;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0 0 0 4px;
    text-decoration: underline;
}

.auth-two-factor-page .auth-resend-button:disabled {
    color: var(--auth-muted);
    cursor: wait;
    text-decoration: none;
}

.auth-two-factor-page .auth-resend-button:hover:not(:disabled),
.auth-two-factor-page .auth-resend-button:focus-visible:not(:disabled) {
    color: var(--auth-ink);
}

.auth-two-factor-page .auth-two-factor-signout {
    align-items: center;
    color: var(--auth-muted);
    display: flex;
    font-size: 0.95rem;
    gap: 9px;
    justify-content: center;
    margin-top: 28px;
    text-decoration: none;
}

.auth-two-factor-page .auth-two-factor-signout:hover,
.auth-two-factor-page .auth-two-factor-signout:focus-visible {
    color: var(--auth-ink);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .auth-login-page .auth-brand-panel {
        padding-left: 44px;
        padding-right: 44px;
    }

    .auth-login-page .auth-welcome-copy {
        left: 44px;
        right: 44px;
    }

    .auth-login-page .auth-form-panel {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (max-width: 820px) {
    .auth-login-page .auth-login-shell {
        grid-template-columns: 1fr;
    }

    .auth-login-page .auth-brand-panel {
        min-height: 350px;
        padding: 36px 28px 48px;
    }

    .auth-login-page .auth-brand-logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .auth-login-page .auth-brand-logo img {
        width: min(270px, 68vw);
    }

    .auth-login-page .auth-brand-logo img[src$="logo-en.png"] {
        transform: translateX(2.12%);
    }

    .auth-login-page .auth-brand-logo img[src$="logoV1.png"] {
        transform: translateX(-0.21%);
    }

    .auth-login-page .auth-welcome-copy {
        bottom: 48px;
        left: 28px;
        max-width: 560px;
        right: 28px;
        top: auto;
    }

    .auth-login-page .auth-welcome-copy h1 {
        font-size: clamp(2.6rem, 9vw, 4rem);
    }

    .auth-login-page .auth-welcome-accent {
        margin: 24px 0 18px;
    }

    .auth-login-page .auth-form-panel {
        min-height: auto;
        padding: 112px 28px 56px;
    }

    .auth-login-page .auth-locale-switcher {
        left: 50%;
        right: auto;
        top: 382px;
        transform: translateX(-50%);
    }
}

@media (max-width: 520px) {
    .auth-login-page .auth-brand-panel {
        min-height: 310px;
    }

    .auth-login-page .auth-brand-logo img {
        width: min(230px, 66vw);
    }

    .auth-login-page .auth-welcome-copy p {
        font-size: 1rem;
    }

    .auth-login-page .auth-form-panel {
        padding: 102px 20px 44px;
    }

    .auth-login-page .auth-locale-switcher {
        left: 50%;
        right: auto;
        top: 342px;
    }

    .auth-login-page .auth-locale-switcher a,
    .auth-login-page .auth-locale-switcher span {
        font-size: 0.82rem;
        min-height: 40px;
        padding: 7px 14px;
    }

    .auth-login-page .auth-field {
        margin-bottom: 28px;
    }

    .auth-login-page .auth-control input,
    .auth-login-page .auth-submit,
    .auth-login-page .auth-signup-link {
        height: 60px;
    }

    .auth-login-page .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 38px;
    }

    .auth-login-page .auth-signup {
        margin-top: 38px;
    }

    .auth-recovery-page .auth-brand-panel {
        min-height: 350px;
    }

    .auth-recovery-page .auth-welcome-copy h1 {
        font-size: 2.35rem;
    }

    .auth-recovery-page .auth-locale-switcher {
        top: 382px;
    }

    .auth-recovery-page .auth-form-panel {
        padding-top: 102px;
    }

    .auth-two-factor-page .auth-brand-panel {
        min-height: 380px;
    }

    .auth-two-factor-page .auth-welcome-copy h1 {
        font-size: 2.35rem;
    }

    .auth-two-factor-page .auth-locale-switcher {
        top: 412px;
    }

    .auth-two-factor-page .auth-form-panel {
        padding-top: 102px;
    }

    .auth-two-factor-page .auth-two-factor-heading {
        align-items: flex-start;
        margin-bottom: 34px;
    }

    .auth-two-factor-page .auth-two-factor-badge {
        flex-basis: 50px;
        font-size: 1.4rem;
        height: 50px;
    }

    .auth-two-factor-page .auth-otp-control {
        gap: 7px;
    }

    .auth-two-factor-page .auth-otp-input {
        border-radius: 8px;
        font-size: 1.3rem;
        height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-login-page *,
    .auth-login-page *::before,
    .auth-login-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.auth-login-page .pwa-install {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--auth-line);
    border-radius: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 18px 40px rgba(16, 32, 70, 0.18);
    display: flex;
    gap: 14px;
    left: 50%;
    max-width: 440px;
    padding: 16px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 1050;
}

.auth-login-page .pwa-install[hidden] {
    display: none;
}

.auth-login-page .pwa-install__icon {
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--auth-line);
    flex: 0 0 48px;
    height: 48px;
    width: 48px;
}

.auth-login-page .pwa-install__body {
    flex: 1 1 auto;
    min-width: 0;
}

.auth-login-page .pwa-install__title {
    color: var(--auth-ink);
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.auth-login-page .pwa-install__text {
    color: var(--auth-ink-soft);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 4px 0 0;
}

.auth-login-page .pwa-install__text .bi {
    color: var(--auth-blue);
}

.auth-login-page .pwa-install__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.auth-login-page .pwa-install__button,
.auth-login-page .pwa-install__later {
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 44px;
    padding: 0 18px;
}

.auth-login-page .pwa-install__button {
    background: var(--auth-gold);
    border: 1px solid var(--auth-gold-deep);
    color: var(--auth-ink);
}

.auth-login-page .pwa-install__later {
    background: transparent;
    border: 1px solid var(--auth-line);
    color: var(--auth-ink-soft);
}

.auth-login-page .pwa-install__button[hidden] {
    display: none;
}

.auth-login-page:has(.pwa-install:not([hidden])) main {
    padding-bottom: 200px;
}

.auth-login-page .pwa-install__steps {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: pwa-step;
}

.auth-login-page .pwa-install__steps[hidden] {
    display: none;
}

.auth-login-page .pwa-install__steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-ink);
    font-size: 0.9rem;
    line-height: 1.35;
    counter-increment: pwa-step;
}

.auth-login-page .pwa-install__steps li::before {
    content: counter(pwa-step);
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--auth-gold);
    color: var(--auth-ink);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.auth-login-page .pwa-install__step-icon {
    flex: 0 0 auto;
    color: var(--auth-blue);
    font-size: 1.1rem;
}
