﻿/*********************************************************
Login pages (Views/Login, PasswordResetRequest) - DevExtreme editors
These rules give the DevExtreme widgets the look the DevExpress editors had,
so the converted pages render the same. Loaded by _LoginBase after main_dx.css.
**********************************************************/

/* ---- Text boxes carrying "form-control rounded" (username, password, reset form) ---- */
#launch .dx-textbox.form-control {
    height: 50px;
    background-color: #fff;
    /* the widget gets its classes when it starts: no fade from the default border on page load */
    transition: none;
}

#launch .dx-textbox.form-control.dx-state-focused {
    transition: border-color .15s ease-in-out;
}

#launch .dx-textbox.form-control .dx-texteditor-container,
#launch .dx-textbox.form-control .dx-texteditor-input-container {
    height: 100%;
}

/* main.css already sets the 15px 20px padding and 15px size on "div#launch .form-control input" */
#launch .dx-textbox.form-control .dx-texteditor-input {
    height: 48px;
    min-height: 48px;
    font-family: 'Roboto Regular', Helvetica, 'Droid Sans', Tahoma, Geneva, sans-serif;
    font-weight: 400;
    color: #484848;
    line-height: normal;
}

/* password box: the show/hide eye sits inside the box, centred on it */
.lg-password {
    position: relative;
    width: 100%;
}

.lg-password-eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
}

/* invalid field: red warning triangle on the right, as the DevExpress editors showed it */
.lg-field {
    display: flex;
    align-items: center;
}

.lg-field > .dx-textbox {
    flex: 1 1 auto;
    min-width: 0;
}

.lg-field-error {
    display: none;
    flex: 0 0 48px;
    text-align: center;
    color: #ff0000;
    font-size: 14px;
    cursor: default;
}

.lg-field.lg-invalid .lg-field-error {
    display: inline-block;
}

/* ---- Labels that used to be DevExpress Label controls ---- */
.lg-label {
    font: 13px 'Roboto Regular', Helvetica, 'Droid Sans', Tahoma, Geneva, sans-serif;
    color: #000;
}

.lg-label.lg-block {
    display: block;
}

/* ---- Big login-style buttons (btn-login / bg-green with button--moema) ---- */
/* main_dx.css gave the DevExpress version (.btn.dxbButtonSys) this border and capitalised text */
.dx-button.btn.button--moema {
    border: 1px solid #a7a7a747 !important;
    border-radius: 5px !important;
    box-shadow: none;
    font: inherit;
    text-transform: capitalize;
    width: 100%;
}

.dx-button.btn.button--moema.dx-state-hover {
    border: 1px solid rgb(225 225 225 / 43%) !important;
}

.dx-button.btn.button--moema .dx-button-content {
    padding: 8px 13px;
    line-height: 21px;
}

.dx-button.btn.button--moema.dx-state-disabled {
    opacity: 1;
}

.dx-button.btn.button--moema.dx-state-disabled .dx-button-content {
    opacity: .6;
}

/* ---- Small form buttons (password reset request: Submit / Cancel) ---- */
.lg-form-btn.dx-button {
    min-width: 96px;
    height: 37px;
    border: 0;
    border-radius: 2px;
    background-color: #e9770c;
    color: #fff;
    box-shadow: none;
    font: 13px 'Roboto Regular', Helvetica, 'Droid Sans', Tahoma, Geneva, sans-serif;
}

.lg-form-btn.dx-button.bg-secondary {
    background-color: #6c757d;
}

.lg-form-btn.dx-button .dx-button-content {
    padding: 8px 13px;
}

.lg-form-btn.dx-button .dx-button-text {
    text-transform: none;
    line-height: 17px;
}

.lg-form-btn.dx-button.dx-state-hover,
.lg-form-btn.dx-button.dx-state-focused {
    filter: brightness(1.08);
}

/* right-hand block of the reset form (captcha + buttons), formerly a DevExpress FormLayout */
.lg-reset-actions {
    width: 270px;
    padding: 16px 10px 0 0;
    text-align: right;
}

.lg-reset-actions > div {
    margin-bottom: 11px;
}

/* ---- "Resend code" link button on the two-factor page ---- */
.lg-link-btn.dx-button {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #fd560d;
}

.lg-link-btn.dx-button .dx-button-content {
    padding: 0;
}

.lg-link-btn.dx-button .dx-button-text {
    text-transform: none;
    text-decoration: underline;
}

.lg-link-btn.dx-button.dx-state-disabled {
    opacity: 1;
    color: #6c757d;
}

.lg-link-btn.dx-button.dx-state-disabled .dx-button-text {
    text-decoration: none;
}

/* ---- "Access Blocked" popup ---- */
.lg-block-popup .dx-overlay-content {
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
}

.lg-block-popup .dx-popup-title.dx-toolbar {
    padding: 18px 10px 16px 12px;
    border-bottom: 1px solid #fff;
    background: linear-gradient(41deg, #0069ff 10%, #012891 42%, #1f0191 62%);
}

.lg-block-popup .dx-popup-title .dx-toolbar-label,
.lg-block-popup .dx-popup-title .dx-toolbar-label .dx-toolbar-item-content > div {
    font: 13px 'Roboto Regular', Helvetica, 'Droid Sans', Tahoma, Geneva, sans-serif;
    color: #fff;
}

.lg-block-popup .dx-popup-title .dx-closebutton .dx-icon {
    color: #fff;
}

.lg-block-popup .dx-popup-content {
    padding: 0;
}

/* ---- Self-hosted captcha code box (VisionCaptchaPartial, DevExtreme mode) ---- */
.vision-captcha .dx-textbox.vision-captcha-code {
    height: 30px;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    background-color: #fff;
}

.vision-captcha .vision-captcha-code .dx-texteditor-input {
    height: 28px;
    min-height: 28px;
    padding: 0 8px;
    font: 13px 'Roboto Regular', Helvetica, 'Droid Sans', Tahoma, Geneva, sans-serif;
    color: #212529;
}

.vision-captcha .vision-captcha-code .dx-placeholder::before {
    padding: 0 8px;
    line-height: 28px;
    font: 13px 'Roboto Regular', Helvetica, 'Droid Sans', Tahoma, Geneva, sans-serif;
    color: #bdbdbd;
}

.vision-captcha-error {
    /* overflows to the right instead of widening (and, right-aligned, shifting) the captcha block */
    width: 0;
    white-space: nowrap;
    padding-top: 6px;
    font: 14px 'Roboto Regular', Helvetica, 'Droid Sans', Tahoma, Geneva, sans-serif;
    color: #ff0000;
}

/* inside the reset form the DevExpress layout squeezed the code box to 17px; keep that look */
.lg-reset-actions .vision-captcha .dx-textbox.vision-captcha-code {
    height: 17px;
}

.lg-reset-actions .vision-captcha .vision-captcha-code .dx-texteditor-input {
    height: 15px;
    min-height: 15px;
    padding: 0 1px 0 0;
}

.lg-reset-actions .vision-captcha .vision-captcha-code .dx-placeholder::before {
    padding: 0;
    line-height: 15px;
}

/* ---- Cookie notice (Login/Index): full-width row at the bottom, gone once "Accept" is pressed ---- */
.lg-cookie {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 32px;
    background: #0e1d40;
    color: #dfe4f2;
    box-shadow: 0 -6px 24px rgba(14, 29, 64, .25);
    animation: lg-cookie-in .35s ease-out both;
}

.lg-cookie-hide {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .25s, transform .25s;
}

@keyframes lg-cookie-in {
    from { transform: translateY(100%); }
    to { transform: none; }
}

.lg-cookie-text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.lg-cookie-link {
    margin-left: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.lg-cookie-link:hover {
    color: #f5b98a;
}

.lg-cookie-ok {
    flex: 0 0 auto;
    padding: 9px 26px;
    border: 0;
    border-radius: 6px;
    background: #e9770c;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.lg-cookie-ok:hover {
    background: #d06608;
}

.lg-cookie-ok:focus-visible,
.lg-cookie-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .lg-cookie {
        flex-wrap: wrap;
        padding: 14px 16px;
    }


    .lg-cookie-ok {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-cookie,
    .lg-cookie-hide {
        animation: none;
        transition: none;
    }
}