﻿/* ==========================================================
   CENTRAL AUTHENTICATION
   MTSC / CENTRAL BRANDING
   ========================================================== */


/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
    --central-navy: #061426;
    --central-navy-light: #0a1d36;
    --mtsc-red: #ed1c24;
    --mtsc-red-dark: #c81018;
    --mtsc-black: #050505;
    --auth-white: #ffffff;
    --auth-text: #1f2937;
    --auth-muted: #94a3b8;
    --auth-border: #d8dee8;
    --auth-radius: 15px;
    --auth-shadow: 0 25px 70px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.18);
}


/* ==========================================================
   GLOBAL AUTH RESET
   ========================================================== */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    overflow: hidden !important;
}

body.central-login {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    background: radial-gradient( circle at 15% 25%, rgba(20, 70, 130, 0.35), transparent 28% ), radial-gradient( circle at 85% 75%, rgba(15, 65, 125, 0.28), transparent 30% ), linear-gradient( 135deg, #07182c 0%, #061426 45%, #020b18 100% );
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: var(--auth-text);
    position: relative;
}


/* ==========================================================
   PREVENT PACE TEMPLATE FROM CREATING EXTRA HEIGHT
   ========================================================== */

.central-login .auth-box {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}


/* ==========================================================
   BACKGROUND
   ========================================================== */

.central-login::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient( circle at 12% 30%, rgba(0, 102, 204, 0.15), transparent 25% ), radial-gradient( circle at 88% 70%, rgba(0, 82, 170, 0.12), transparent 27% );
    z-index: 0;
}


/* ==========================================================
   SUBTLE BACKGROUND PULSE
   ========================================================== */

.central-login::after {
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    background: radial-gradient( circle at 50% 50%, rgba(255, 255, 255, 0.025), transparent 35% );
    animation: centralBackgroundPulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes centralBackgroundPulse {

    0%, 100% {
        opacity: 0.45;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.04);
    }
}


/* ==========================================================
   PARTICLE CONTAINER
   ========================================================== */

.central-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}


    /* ==========================================================
   PARTICLES
   ========================================================== */

    .central-particles .particle {
        position: absolute;
        display: block;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.85), 0 0 12px rgba(160, 205, 255, 0.55);
        opacity: 0.65;
        animation: centralParticleFloat var(--particle-duration, 7s) ease-in-out infinite;
        animation-delay: var(--particle-delay, 0s);
    }


    /* ==========================================================
   PARTICLE POSITIONS
   ========================================================== */

    .central-particles .particle-1 {
        left: 7%;
        top: 12%;
        --particle-duration: 8s;
        --particle-delay: -2s;
    }

    .central-particles .particle-2 {
        left: 18%;
        top: 76%;
        width: 2px;
        height: 2px;
        --particle-duration: 9s;
        --particle-delay: -5s;
    }

    .central-particles .particle-3 {
        left: 27%;
        top: 18%;
        width: 2px;
        height: 2px;
        --particle-duration: 7s;
        --particle-delay: -1s;
    }

    .central-particles .particle-4 {
        left: 35%;
        top: 88%;
        width: 3px;
        height: 3px;
        --particle-duration: 10s;
        --particle-delay: -6s;
    }

    .central-particles .particle-5 {
        left: 45%;
        top: 11%;
        width: 2px;
        height: 2px;
        --particle-duration: 8s;
        --particle-delay: -3s;
    }

    .central-particles .particle-6 {
        left: 55%;
        top: 83%;
        width: 2px;
        height: 2px;
        --particle-duration: 9s;
        --particle-delay: -4s;
    }

    .central-particles .particle-7 {
        left: 64%;
        top: 22%;
        width: 3px;
        height: 3px;
        --particle-duration: 7s;
        --particle-delay: -1s;
    }

    .central-particles .particle-8 {
        left: 70%;
        top: 72%;
        width: 2px;
        height: 2px;
        --particle-duration: 11s;
        --particle-delay: -7s;
    }

    .central-particles .particle-9 {
        left: 77%;
        top: 15%;
        width: 3px;
        height: 3px;
        --particle-duration: 8s;
        --particle-delay: -3s;
    }

    .central-particles .particle-10 {
        left: 85%;
        top: 52%;
        width: 2px;
        height: 2px;
        --particle-duration: 9s;
        --particle-delay: -5s;
    }

    .central-particles .particle-11 {
        left: 92%;
        top: 31%;
        width: 3px;
        height: 3px;
        --particle-duration: 10s;
        --particle-delay: -4s;
    }

    .central-particles .particle-12 {
        left: 96%;
        top: 85%;
        width: 2px;
        height: 2px;
        --particle-duration: 8s;
        --particle-delay: -2s;
    }

    .central-particles .particle-13 {
        left: 4%;
        top: 58%;
        width: 2px;
        height: 2px;
        --particle-duration: 9s;
        --particle-delay: -6s;
    }

    .central-particles .particle-14 {
        left: 23%;
        top: 94%;
        width: 2px;
        height: 2px;
        --particle-duration: 11s;
        --particle-delay: -8s;
    }

    .central-particles .particle-15 {
        left: 41%;
        top: 72%;
        width: 2px;
        height: 2px;
        --particle-duration: 8s;
        --particle-delay: -4s;
    }

    .central-particles .particle-16 {
        left: 59%;
        top: 8%;
        width: 2px;
        height: 2px;
        --particle-duration: 10s;
        --particle-delay: -5s;
    }

    .central-particles .particle-17 {
        left: 73%;
        top: 42%;
        width: 3px;
        height: 3px;
        --particle-duration: 9s;
        --particle-delay: -3s;
    }

    .central-particles .particle-18 {
        left: 81%;
        top: 91%;
        width: 2px;
        height: 2px;
        --particle-duration: 10s;
        --particle-delay: -7s;
    }

    .central-particles .particle-19 {
        left: 89%;
        top: 8%;
        width: 2px;
        height: 2px;
        --particle-duration: 8s;
        --particle-delay: -2s;
    }

    .central-particles .particle-20 {
        left: 13%;
        top: 42%;
        width: 2px;
        height: 2px;
        --particle-duration: 10s;
        --particle-delay: -6s;
    }


/* ==========================================================
   PARTICLE ANIMATION
   ========================================================== */

@keyframes centralParticleFloat {

    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0.25;
    }

    25% {
        opacity: 0.8;
    }

    50% {
        transform: translate3d( 12px, -18px, 0 );
        opacity: 1;
    }

    75% {
        opacity: 0.65;
    }

    100% {
        transform: translate3d( -8px, 10px, 0 );
        opacity: 0.25;
    }
}


/* ==========================================================
   LARGE BACKGROUND GLOW
   ========================================================== */

.central-login .central-glow-left,
.central-login .central-glow-right {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.12;
    z-index: 0;
}

.central-login .central-glow-left {
    left: -180px;
    top: 10%;
    background: #0066cc;
}

.central-login .central-glow-right {
    right: -180px;
    bottom: 5%;
    background: #004ea8;
}


/* ==========================================================
   AUTH CONTAINER
   ========================================================== */

.central-login .auth-box > .container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}


/* ==========================================================
   LOGIN COLUMN
   ========================================================== */

.central-login .auth-box .col-xxl-5,
.central-login .auth-box .col-md-6,
.central-login .auth-box .col-sm-8 {
    width: 100%;
    max-width: 596px;
    flex: 0 0 596px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}


/* ==========================================================
   LOGIN CARD
   ========================================================== */

.central-login .card {
    position: relative;
    width: 100%;
    max-width: 596px;
    margin: 0 auto;
    padding: 34px !important;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--auth-radius);
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.98) );
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}


    /* ==========================================================
   CARD TOP ACCENT
   ========================================================== */

    .central-login .card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient( 90deg, var(--mtsc-red), var(--mtsc-red-dark), var(--mtsc-black) );
    }


    /* ==========================================================
   CARD INNER LIGHT
   ========================================================== */

    .central-login .card::after {
        content: "";
        position: absolute;
        width: 240px;
        height: 240px;
        top: -150px;
        right: -120px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(237, 28, 36, 0.07), transparent 70% );
        pointer-events: none;
    }


/* ==========================================================
   BRAND
   ========================================================== */

.central-login .auth-brand {
    position: relative;
    z-index: 2;
}

    .central-login .auth-brand img {
        display: inline-block;
        max-width: 215px;
        max-height: 75px;
        width: auto;
        height: auto;
        object-fit: contain;
    }


    /* ==========================================================
   BRAND HEADLINE
   ========================================================== */

    .central-login .auth-brand h4 {
        margin-top: 20px !important;
        margin-bottom: 8px !important;
        color: #202733 !important;
        font-size: 19px;
        font-weight: 700;
    }

    .central-login .auth-brand p {
        margin-bottom: 0;
        color: #94a3b8 !important;
        font-size: 14px;
    }


/* ==========================================================
   DIVIDERS
   ========================================================== */

.central-login .card hr {
    margin-top: 24px;
    margin-bottom: 24px;
    border: 0;
    border-top: 1px solid #e5e9ef;
    opacity: 1;
}


/* ==========================================================
   FORM LABELS
   ========================================================== */

.central-login .form-label {
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

    .central-login .form-label .text-danger {
        color: var(--mtsc-red) !important;
    }


/* ==========================================================
   INPUTS
   ========================================================== */

.central-login .form-control {
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 12px 15px;
    border: 1px solid var(--auth-border);
    border-radius: 9px;
    background: #ffffff;
    color: #1f2937;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}


    .central-login .form-control::placeholder {
        color: #9aa9bd;
        opacity: 1;
    }


    .central-login .form-control:hover {
        border-color: #b8c3d1;
    }


    .central-login .form-control:focus {
        border-color: var(--mtsc-red);
        background: #ffffff;
        outline: none;
        box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.10);
    }


/* ==========================================================
   INPUT GROUP
   ========================================================== */

.central-login .input-group {
    width: 100%;
}


/* ==========================================================
   VALIDATION ALERT
   ========================================================== */

.central-login .alert {
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 13px;
}


/* ==========================================================
   SIGN IN BUTTON
   ========================================================== */

.central-login button[type="submit"] {
    position: relative;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient( 100deg, var(--mtsc-red) 0%, #e51b23 48%, var(--mtsc-black) 100% );
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 22px rgba(237, 28, 36, 0.20);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}


    .central-login button[type="submit"]::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.22), transparent );
        transform: skewX(-20deg);
        transition: left 0.5s ease;
    }


    .central-login button[type="submit"]:hover {
        transform: translateY(-1px);
        filter: brightness(1.04);
        box-shadow: 0 12px 28px rgba(237, 28, 36, 0.30);
    }


        .central-login button[type="submit"]:hover::before {
            left: 130%;
        }


    .central-login button[type="submit"]:active {
        transform: translateY(0);
        box-shadow: 0 5px 15px rgba(237, 28, 36, 0.20);
    }


/* ==========================================================
   COPYRIGHT
   ========================================================== */

.central-login .auth-box + p {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 20;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.60) !important;
    font-size: 13px;
    white-space: nowrap;
}


/* ==========================================================
   RESET PAGE
   ========================================================== */

.central-reset .auth-box {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    align-items: center !important;
    padding-top: 30px;
    padding-bottom: 30px;
}

.central-reset .card {
    max-width: 560px;
}

.central-reset .auth-brand img {
    max-width: 190px;
}


/* ==========================================================
   RESET SUCCESS
   ========================================================== */

.central-reset .alert-success {
    border: 1px solid rgba(25, 135, 84, 0.18);
    background: rgba(25, 135, 84, 0.08);
    color: #146c43;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 575.98px) {

    html,
    body {
        overflow: hidden !important;
    }


        body.central-login {
            height: 100dvh;
            min-height: 100dvh;
            overflow: hidden !important;
        }


    .central-login .auth-box {
        height: 100dvh;
        min-height: 100dvh;
        padding: 16px 0 !important;
        overflow: hidden !important;
        align-items: center !important;
    }


        .central-login .auth-box > .container {
            width: 100%;
            max-width: 100%;
            padding-left: 14px;
            padding-right: 14px;
        }


        .central-login .auth-box .row {
            width: 100%;
            margin-left: 0;
            margin-right: 0;
        }


        .central-login .auth-box .col-xxl-5,
        .central-login .auth-box .col-md-6,
        .central-login .auth-box .col-sm-8 {
            width: 100%;
            max-width: 100%;
            flex: 0 0 100%;
            padding-left: 0;
            padding-right: 0;
        }


    .central-login .card {
        width: 100%;
        max-width: 430px;
        padding: 25px 22px !important;
        border-radius: 13px;
    }


    .central-login .auth-brand img {
        max-width: 185px;
        max-height: 65px;
    }


    .central-login .auth-brand h4 {
        font-size: 17px;
        margin-top: 16px !important;
    }


    .central-login .auth-brand p {
        font-size: 13px;
    }


    .central-login .card hr {
        margin-top: 20px;
        margin-bottom: 20px;
    }


    .central-login .form-control {
        height: 50px;
        min-height: 50px;
    }


    .central-login button[type="submit"] {
        height: 50px;
    }


    .central-login .auth-box + p {
        bottom: 10px;
        font-size: 11px;
    }


    .central-login .central-glow-left,
    .central-login .central-glow-right {
        width: 250px;
        height: 250px;
        filter: blur(70px);
        opacity: 0.10;
    }
}


/* ==========================================================
   SHORT DESKTOP SCREENS
   ========================================================== */

@media (max-height: 800px) and (min-width: 576px) {

    .central-login .card {
        padding: 27px !important;
    }


    .central-login .auth-brand img {
        max-height: 62px;
    }


    .central-login .auth-brand h4 {
        margin-top: 14px !important;
    }


    .central-login .card hr {
        margin-top: 18px;
        margin-bottom: 18px;
    }


    .central-login .form-control {
        height: 48px;
        min-height: 48px;
    }


    .central-login button[type="submit"] {
        height: 50px;
    }


    .central-login .auth-box + p {
        bottom: 12px;
    }
}


/* ==========================================================
   VERY SHORT SCREENS
   ========================================================== */

@media (max-height: 680px) and (min-width: 576px) {

    .central-login .card {
        padding: 22px !important;
    }


    .central-login .auth-brand img {
        max-height: 52px;
    }


    .central-login .auth-brand h4 {
        font-size: 17px;
        margin-top: 10px !important;
    }


    .central-login .auth-brand p {
        font-size: 12px;
    }


    .central-login .card hr {
        margin-top: 14px;
        margin-bottom: 14px;
    }


    .central-login .mb-3 {
        margin-bottom: 12px !important;
    }


    .central-login .mb-4 {
        margin-bottom: 15px !important;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .central-login::after,
    .central-particles .particle,
    .central-login button[type="submit"] {
        animation: none !important;
        transition: none !important;
    }
}
