/* ============================================================
   FebaLab Platform
   Login page - Pastel Light Theme
   ------------------------------------------------------------
   Header / branding се визуализира от _Layout.cshtml.
   Този файл стилизира единствено съдържанието на Login страницата.
   ============================================================ */


/* ------------------------------------------------------------
   PAGE
   ------------------------------------------------------------ */

.fl-login-only-page {
    min-height: calc(100vh - 125px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 64px;
    background: radial-gradient( circle at 28% 18%, rgba(79, 159, 224, 0.10), transparent 32% ), radial-gradient( circle at 76% 72%, rgba(40, 190, 194, 0.07), transparent 30% ), linear-gradient( 135deg, #f9fcff 0%, #eef7fd 52%, #f8fcff 100% );
    box-sizing: border-box;
}


/* ------------------------------------------------------------
   LOGIN CARD
   ------------------------------------------------------------ */

.fl-login-card {
    width: min(460px, 100%);
    padding: 38px 40px 34px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(70, 118, 154, 0.14);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(60, 103, 137, 0.13), 0 8px 24px rgba(60, 103, 137, 0.06);
    box-sizing: border-box;
}


/* ------------------------------------------------------------
   CARD ICON
   ------------------------------------------------------------ */

.fl-login-card-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 15px;
    background: linear-gradient( 135deg, #54a9e8 0%, #28b8c3 100% );
    box-shadow: 0 10px 24px rgba(56, 156, 207, 0.20);
}

    .fl-login-card-icon .dx-icon {
        color: #ffffff;
        font-size: 25px;
    }


/* ------------------------------------------------------------
   CARD HEADER
   ------------------------------------------------------------ */

.fl-login-card-head {
    margin-bottom: 27px;
}

    .fl-login-card-head h2 {
        margin: 0 0 8px;
        color: #173b56;
        font-size: 27px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.4px;
    }

    .fl-login-card-head p {
        margin: 0;
        color: #7890a3;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.55;
    }


/* ------------------------------------------------------------
   FORM
   ------------------------------------------------------------ */

.fl-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .fl-login-form label {
        display: block;
        margin: 0;
        color: #29485f;
        font-size: 13px;
        font-weight: 600;
    }

        .fl-login-form label > span:first-child {
            display: block;
            margin-bottom: 8px;
        }


/* ------------------------------------------------------------
   INPUT SHELL
   ------------------------------------------------------------ */

.fl-input-shell {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f9fcfe;
    border: 1px solid #d7e5ef;
    border-radius: 11px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    box-sizing: border-box;
}

    .fl-input-shell:focus-within {
        background: #ffffff;
        border-color: #58a8e5;
        box-shadow: 0 0 0 3px rgba(78, 161, 225, 0.12);
    }

    .fl-input-shell > .dx-icon {
        flex: 0 0 auto;
        margin-left: 15px;
        margin-right: 10px;
        color: #58a5df;
        font-size: 17px;
    }

    .fl-input-shell input {
        width: 100%;
        height: 100%;
        min-width: 0;
        padding: 0 15px 0 0;
        color: #173b56;
        background: transparent;
        border: 0;
        outline: 0;
        font-family: inherit;
        font-size: 15px;
        font-weight: 400;
        box-sizing: border-box;
    }

        .fl-input-shell input::placeholder {
            color: #a7b8c5;
        }


/* ------------------------------------------------------------
   LOGIN BUTTON
   ------------------------------------------------------------ */

.fl-login-submit {
    width: 100%;
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 3px;
    padding: 0 20px;
    color: #ffffff;
    background: linear-gradient( 90deg, #59a9e7 0%, #3f98dc 100% );
    border: 0;
    border-radius: 11px;
    box-shadow: 0 10px 25px rgba(63, 152, 220, 0.18);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

    .fl-login-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 13px 28px rgba(63, 152, 220, 0.24);
        filter: brightness(1.025);
    }

    .fl-login-submit:active {
        transform: translateY(0);
        box-shadow: 0 7px 18px rgba(63, 152, 220, 0.18);
    }

    .fl-login-submit:focus-visible {
        outline: 3px solid rgba(70, 159, 226, 0.22);
        outline-offset: 3px;
    }

    .fl-login-submit .dx-icon {
        color: inherit;
        font-size: 17px;
    }


/* ------------------------------------------------------------
   VALIDATION / ERROR MESSAGE
   ------------------------------------------------------------ */

.fl-login-error {
    margin: -5px 0 20px;
    padding: 12px 14px;
    color: #a53e48;
    background: #fff4f5;
    border: 1px solid #f1cdd1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}


/* ------------------------------------------------------------
   SECURITY NOTE
   ------------------------------------------------------------ */

.fl-login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    color: #8095a5;
    border-top: 1px solid #e5edf3;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

    .fl-login-security-note .dx-icon {
        flex: 0 0 auto;
        color: #27afb9;
        font-size: 14px;
    }


/* ------------------------------------------------------------
   AUTOFILL
   Chrome / Edge
   ------------------------------------------------------------ */

.fl-input-shell input:-webkit-autofill,
.fl-input-shell input:-webkit-autofill:hover,
.fl-input-shell input:-webkit-autofill:focus {
    -webkit-text-fill-color: #173b56;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 5000s ease-in-out 0s;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 640px) {

    .fl-login-only-page {
        min-height: calc(100vh - 95px);
        padding: 28px 16px 40px;
        align-items: flex-start;
    }

    .fl-login-card {
        width: 100%;
        padding: 30px 24px 27px;
        border-radius: 19px;
    }

    .fl-login-card-icon {
        width: 49px;
        height: 49px;
        margin-bottom: 19px;
        border-radius: 13px;
    }

    .fl-login-card-head h2 {
        font-size: 24px;
    }

    .fl-login-card-head p {
        font-size: 13px;
    }

    .fl-input-shell {
        height: 47px;
    }

    .fl-login-submit {
        min-height: 48px;
    }

    .fl-login-security-note {
        align-items: flex-start;
        text-align: left;
    }
}


/* ------------------------------------------------------------
   VERY SMALL SCREENS
   ------------------------------------------------------------ */

@media (max-width: 380px) {

    .fl-login-only-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .fl-login-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .fl-login-card-head h2 {
        font-size: 22px;
    }
}
