/* =========================================================
   MODERN LOGIN PAGE
========================================================= */

.custom-login-form {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(8, 18, 45, 0.58),
            rgba(22, 45, 85, 0.38)
        ),
        url("../images/roadbp.webp");

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


/* Dark blue overlay */
.custom-login-form::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(100, 170, 255, 0.16),
            transparent 45%
        );

    pointer-events: none;
}


/* =========================================================
   MAIN LOGIN GLASS CARD
========================================================= */

.containerinnerbox {
    position: relative;
    z-index: 2;

    width: min(460px, calc(100% - 20px));

    padding: 38px 36px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.24),
            rgba(255, 255, 255, 0.10)
        );

    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);

    text-align: center;
    color: #fff;

    margin: 0 auto;

    overflow: hidden;
}


/* Small glass highlight */
.containerinnerbox::before {
    content: "";
    position: absolute;

    top: 0;
    left: 8%;
    right: 8%;

    height: 1px;

    background: rgba(255, 255, 255, 0.45);

    pointer-events: none;
}


/* =========================================================
   LOGIN TITLE
========================================================= */

.logintitsyl {
    margin: 0 0 8px;

    font-size: 28px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.5px;

    color: #ffffff;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   TABLE / FORM AREA
========================================================= */

.custom-login-form table {
    width: 100%;

    border: none;
    border-collapse: separate;
    border-spacing: 0;

    background: transparent;

    box-shadow: none;

    border-radius: 0;
}


/* Remove default table styling */
.custom-login-form table td,
.custom-login-form table th {
    border: none;
    background: transparent;
    padding: 7px 0;
}


/* =========================================================
   INPUTS
========================================================= */

.custom-login-form input[type="text"],
.custom-login-form input[type="password"] {

    width: 100%;

    height: 52px;

    box-sizing: border-box;

    padding: 0 18px;

    margin: 0;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 13px;

    outline: none;

    color: #ffffff;

    font-size: 15px;
    font-weight: 400;

    background: rgba(15, 35, 65, 0.32);

    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.10);

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


/* Placeholder */
.custom-login-form input[type="text"]::placeholder,
.custom-login-form input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.72);
}


/* Focus */
.custom-login-form input[type="text"]:focus,
.custom-login-form input[type="password"]:focus {

    border-color: rgba(255, 255, 255, 0.60);

    background: rgba(20, 45, 80, 0.46);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.08),
        0 8px 22px rgba(0, 0, 0, 0.12);

    transform: translateY(-1px);
}


/* =========================================================
   REMEMBER ME
========================================================= */

.custom-login-form input[type="checkbox"] {

    width: 16px;
    height: 16px;

    margin: 0 8px 0 0;

    accent-color: #ffffff;

    vertical-align: middle;

    cursor: pointer;
}


/* Remember me label */
.custom-login-form label {
    color: rgba(255, 255, 255, 0.90);

    font-size: 13px;

    font-weight: 500;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.custom-login-form input[type="submit"] {

    width: 100%;

    height: 54px;

    box-sizing: border-box;

    padding: 0 25px;

    margin-top: 16px;

    border: 1px solid rgba(255, 255, 255, 0.28);

    border-radius: 13px;

    cursor: pointer;

    color: #14233d;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 0.1px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.96),
            rgba(225, 238, 255, 0.88)
        );

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.custom-login-form input[type="submit"]:hover {

    color: #10203a;

    background: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.24);
}


.custom-login-form input[type="submit"]:active {
    transform: translateY(0);
}


/* =========================================================
   FORGOT PASSWORD
========================================================= */

.lost-password {

    display: inline-block;

    padding: 8px 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 12px;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}


.lost-password:hover {
    color: #ffffff;
}


/* =========================================================
   BACK TO SITE
========================================================= */

.bcksit {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 43px;

    box-sizing: border-box;

    padding: 0 18px;

    margin-top: 12px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 11px;

    color: rgba(255, 255, 255, 0.88);

    background: rgba(255, 255, 255, 0.08);

    font-size: 12px;

    font-weight: 500;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.bcksit:hover {

    color: #ffffff;

    background: rgba(255, 255, 255, 0.18);

    border-color: rgba(255, 255, 255, 0.35);

    transform: translateY(-1px);
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.ndi-error {

    width: 100%;

    box-sizing: border-box;

    margin: 12px 0;

    padding: 11px 14px;

    color: #8a1f11;

    background: rgba(255, 245, 243, 0.94);

    border: 1px solid rgba(214, 54, 56, 0.25);

    border-left: 4px solid #d63638;

    border-radius: 10px;

    text-align: left;

    font-size: 13px;

    line-height: 1.45;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   OLD LOGIN ERROR
========================================================= */

.login-error {

    position: absolute;

    z-index: 10;

    top: 20px;

    left: 50%;

    transform: translateX(-50%);

    margin: 0;

    min-width: 260px;

    box-sizing: border-box;

    padding: 13px 18px;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 10px;

    color: #a51f1f;

    background: rgba(255, 255, 255, 0.94);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18);

    font-size: 13px;
}


/* =========================================================
   SPINNER
========================================================= */

.spinner {

    width: 36px;
    height: 36px;

    margin: 15px auto;

    border: 3px solid rgba(255, 255, 255, 0.30);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}


@keyframes spin {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .custom-login-form {

        min-height: 100svh;

        padding: 20px 14px;

        background-position: center center;
    }


    .containerinnerbox {

        width: 100%;

        max-width: 430px;

        padding: 30px 20px;

        border-radius: 20px;

        backdrop-filter: blur(16px) saturate(125%);
        -webkit-backdrop-filter: blur(16px) saturate(125%);
    }


    .logintitsyl {
        font-size: 24px;
    }


    .custom-login-form input[type="text"],
    .custom-login-form input[type="password"] {

        height: 50px;

        font-size: 14px;

        padding: 0 15px;
    }


    .custom-login-form input[type="submit"] {

        height: 51px;

        font-size: 15px;
    }


    .bcksit {

        min-height: 41px;

        font-size: 12px;
    }


    .login-error {

        top: 12px;

        width: calc(100% - 30px);

        min-width: 0;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .containerinnerbox {

        padding: 26px 16px;

        border-radius: 18px;
    }


    .logintitsyl {
        font-size: 22px;
    }
}