﻿/* START LOGIN VARIABLES */

.login-page {
    --brand-soft: #cfe6f7;
    --visual-from: #1E78B4;
    --visual-to: #145988;
}

/* END LOGIN VARIABLES */


/* START PAGE BACKGROUND */

html, body {
    height: 100%;
}

    body.login-page {
        margin: 0;
        background-color: var(--page-bg);
    }

.login-page form {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* END PAGE BACKGROUND */


/* START CARD */

.login-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 940px;
    min-height: 540px;
    background-color: var(--white);
    border: 1px solid var(--field-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(30, 120, 180, 0.14);
}

.login-form-side {
    flex: 0 0 52%;
    max-width: 52%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 50px;
}

.login-visual-side {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 32px;
    background: linear-gradient(165deg, var(--visual-from) 0%, var(--visual-to) 100%);
    overflow: hidden;
}

    /* one soft circle for depth, same language as the welcome banner */
    .login-visual-side::after {
        content: "";
        position: absolute;
        left: -90px;
        bottom: -110px;
        width: 300px;
        height: 300px;
        background-color: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
    }

/* END CARD */


/* START BRAND ROW */

.login-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
}

.login-brand-mark {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* END BRAND ROW */


/* START FORM */

.login-box {
    width: 100%;
}

.login-title {
    font-size: 26px;
    color: var(--brand-deep);
    text-align: center;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 30px 0;
}

.login-field {
    margin-bottom: 18px;
}

    .login-field label {
        display: block;
        margin-bottom: 7px;
        font-size: 14px;
        color: var(--text-dark);
    }

/* the group is the visual box, icon and input sit inside it */
.login-page .input-group {
    display: flex;
    align-items: stretch;
    height: 48px;
    background-color: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

    .login-page .input-group:focus-within {
        background-color: var(--white);
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(54, 160, 227, 0.18);
    }

.login-page .input-group-text {
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-muted);
    border-left: 1px solid var(--field-border);
    transition: color 0.2s;
}

.login-page .input-group:focus-within .input-group-text {
    color: var(--brand-deep);
}

.login-page .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    font-size: 15px;
    color: var(--text-dark);
    background: transparent;
    border: 0;
    outline: none;
}

.login-button {
    width: 100%;
    height: 48px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    background-color: var(--brand-deep);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .login-button:hover,
    .login-button:focus-visible {
        background-color: #175e8f;
    }

    .login-button:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

/* END FORM */


/* START VISUAL SIDE */

.login-visual-logo {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

    .login-visual-logo img {
        max-width: 150px;
        max-height: 150px;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

.login-visual-text {
    position: relative;
    z-index: 1;
    text-align: center;
}

.brand-name {
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 1.7;
    color: var(--white);
}

.brand-name-en {
    margin: 0;
    font-size: 13.5px;
    color: var(--brand-soft);
    direction: ltr;
}

.brand-desc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 14px 0 0 0;
    font-size: 13.5px;
    color: var(--white);
}
    .brand-desc::before,
    .brand-desc::after {
        content: "";
        width: 40px;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.4);
    }
/* END VISUAL SIDE */


/* START CREDIT (idea and supervision, copyright) */
.login-credit {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding-top: 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

    .login-credit p {
        margin: 0;
        font-size: 13px;
        line-height: 1.8;
        color: var(--white);
    }

    .login-credit strong {
        font-weight: 700;
        color: #FFD98A;
    }

    .login-credit .login-credit-copy {
        font-size: 11.5px;
        color: var(--brand-soft);
        opacity: 0.85;
    }

    /* the copy under the form: shown on phones only, in the page colours */
    .login-credit.is-mobile {
        display: none;
        margin-top: 26px;
        border-top-color: #E3ECF4;
    }

        .login-credit.is-mobile p {
            color: var(--text-muted);
        }

        .login-credit.is-mobile strong {
            color: var(--brand-deep);
        }

        .login-credit.is-mobile .login-credit-copy {
            color: var(--text-muted);
        }
/* END CREDIT */


/* START RESPONSIVE */

@media (max-width: 991px) {
    .login-card {
        max-width: 760px;
        min-height: 480px;
    }

    .login-form-side {
        padding: 38px 34px;
    }

    .login-visual-logo img {
        max-width: 140px;
        max-height: 140px;
    }

    .brand-name {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .login-page form {
        padding: 24px 16px;
    }

    .login-card {
        max-width: 440px;
        min-height: 0;
    }

    .login-visual-side {
        display: none;
    }

    .login-credit.is-mobile {
        display: block;
    }

    .login-form-side {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 34px 26px;
    }

    .login-title {
        font-size: 23px;
    }
}

/* END RESPONSIVE */
