﻿/* PARTH AGENT LOGIN — COMPLETE SINGLE STYLESHEET
   Replace login.css with this file and remove the loginpatch.css reference.
   Existing Login.cshtml and authentication logic remain unchanged. */

:root {
    --navy: #07192d;
    --blue: #137bd1;
    --cyan: #24c3f3;
    --ink: #173650;
    --glass: rgba(248,252,255,.89);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--navy);
}

body.auth {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    padding: 38px 18px 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: radial-gradient(ellipse at 12% 18%,rgba(20,137,199,.32),transparent 35%), radial-gradient(ellipse at 88% 78%,rgba(29,75,180,.34),transparent 38%), linear-gradient(135deg,#061526,#092541 52%,#06172c);
}

    body.auth::before, body.auth::after {
        content: "";
        position: fixed;
        inset: -20%;
        z-index: -1;
        pointer-events: none;
    }

    body.auth::before {
        background: radial-gradient(ellipse at 20% 35%,rgba(28,180,237,.22),transparent 29%), radial-gradient(ellipse at 78% 65%,rgba(36,94,205,.25),transparent 33%), radial-gradient(ellipse at 55% 12%,rgba(28,120,188,.16),transparent 26%);
        filter: blur(24px);
        animation: parthAmbient 18s ease-in-out infinite alternate;
    }

    body.auth::after {
        opacity: .24;
        background-image: linear-gradient(rgba(76,174,235,.06) 1px,transparent 1px), linear-gradient(90deg,rgba(76,174,235,.06) 1px,transparent 1px);
        background-size: 68px 68px;
        mask-image: linear-gradient(transparent,#000 18%,#000 82%,transparent);
        animation: parthGrid 32s linear infinite;
    }

    /* Decorative background layer already present in Login.cshtml */
    body.auth .stripes-wraper {
        position: fixed;
        inset: 0;
        z-index: -1;
        overflow: hidden;
        pointer-events: none;
        background: linear-gradient(145deg,transparent 0 27%,rgba(18,69,151,.16) 27.2% 38%,transparent 38.2%), linear-gradient(145deg,transparent 0 63%,rgba(21,115,194,.12) 63.2% 73%,transparent 73.2%);
        background-size: 180% 180%,190% 190%;
        animation: parthBgSweep 16s ease-in-out infinite alternate;
    }

        body.auth .stripes-wraper::before, body.auth .stripes-wraper::after {
            content: "";
            position: absolute;
            width: 82vw;
            height: 30vh;
            min-height: 190px;
            border-radius: 999px;
            pointer-events: none;
            will-change: transform,opacity;
        }

        body.auth .stripes-wraper::before {
            top: 8%;
            left: -30%;
            background: linear-gradient(100deg,transparent,rgba(25,139,218,.13) 34%, rgba(37,190,244,.72) 52%,rgba(24,102,191,.28) 66%,transparent);
            filter: blur(2px);
            opacity: .78;
            animation: parthRibbonA 15s ease-in-out infinite alternate,parthPulseA 7s ease-in-out infinite alternate;
        }

        body.auth .stripes-wraper::after {
            right: -34%;
            bottom: 2%;
            width: 90vw;
            height: 35vh;
            background: linear-gradient(100deg,transparent,rgba(16,76,169,.08) 20%, rgba(20,100,202,.34) 43%,rgba(28,172,236,.65) 52%,rgba(26,92,185,.2) 66%,transparent);
            filter: blur(4px);
            opacity: .6;
            animation: parthRibbonB 19s ease-in-out infinite alternate,parthPulseB 9s ease-in-out infinite alternate-reverse;
        }

        body.auth .stripes-wraper .stripes {
            position: absolute;
            inset: 0;
        }

            body.auth .stripes-wraper .stripes span {
                position: absolute;
                display: block;
                height: 1px;
                width: 42vw;
                background: linear-gradient(90deg,transparent,#5ad8ff,transparent);
                box-shadow: 0 0 18px rgba(32,185,244,.22);
                opacity: .14;
                animation: parthLightLine 12s ease-in-out infinite alternate;
            }

                body.auth .stripes-wraper .stripes span:nth-child(1) {
                    top: 22%;
                    left: -8%;
                    animation-delay: -2s
                }

                body.auth .stripes-wraper .stripes span:nth-child(2) {
                    top: 36%;
                    right: -12%;
                    animation-delay: -6s
                }

                body.auth .stripes-wraper .stripes span:nth-child(3) {
                    top: 64%;
                    left: 4%;
                    animation-delay: -4s
                }

                body.auth .stripes-wraper .stripes span:nth-child(4) {
                    top: 78%;
                    right: 2%;
                    animation-delay: -8s
                }

                body.auth .stripes-wraper .stripes span:nth-child(5) {
                    top: 49%;
                    left: 34%;
                    animation-delay: -1s
                }

    /* Login card and brand */
    body.auth .box {
        position: relative;
        z-index: 1;
        width: min(100%,420px);
        margin: 0 auto;
        padding: 0;
        flex: 0 0 auto;
        animation: parthCardEnter .75s cubic-bezier(.2,.8,.2,1) both;
    }

    body.auth .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 24px;
    }

        body.auth .logo a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 0;
        }

        body.auth .logo img {
            display: block;
            width: auto;
            height: auto;
            max-width: min(190px,65vw);
            max-height: 76px;
            object-fit: contain;
            filter: drop-shadow(0 8px 20px rgba(0,0,0,.18));
        }

    body.auth .body {
        width: 100%;
        padding: 27px 28px 30px;
        border: 1px solid rgba(255,255,255,.76);
        border-radius: 24px;
        background: var(--glass);
        -webkit-backdrop-filter: blur(22px) saturate(145%);
        backdrop-filter: blur(22px) saturate(145%);
        box-shadow: 0 24px 70px rgba(0,0,0,.25),0 5px 18px rgba(4,28,54,.12), inset 0 1px 0 rgba(255,255,255,.9);
    }

        body.auth .body > .row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 0 0 22px;
        }

            body.auth .body > .row > .col-xs-10,
            body.auth .body > .row > .col-xs-2 {
                float: none;
                width: auto;
                min-width: 0;
                padding: 0;
            }

            body.auth .body > .row > .col-xs-10 {
                flex: 1 1 auto;
            }

            body.auth .body > .row > .col-xs-2 {
                flex: 0 0 auto;
            }

        body.auth .body h2 {
            margin: 0;
            color: #163653;
            font-size: clamp(19px,2.2vw,22px);
            font-weight: 700;
            line-height: 1.3;
            letter-spacing: -.35px;
        }

            body.auth .body h2 sup {
                position: relative;
                top: -.15em;
                font-size: .58em;
            }

        body.auth .body > .row p {
            margin: 0;
            color: #6e849b;
            font-size: 13px;
            font-weight: 700;
            text-align: right;
            white-space: nowrap;
        }

    /* Inputs, optional shift dropdown, validation */
    body.auth form {
        display: block;
        width: 100%;
        margin: 0;
    }

    body.auth .form-group {
        width: 100%;
        margin: 0 0 13px;
    }

    body.auth .form-control {
        display: block;
        width: 100%;
        min-width: 0;
        height: 51px;
        margin: 0;
        padding: 0 16px;
        border: 1px solid #d8e5f1;
        border-radius: 13px;
        outline: none;
        color: #173a5b;
        background: rgba(255,255,255,.86);
        box-shadow: 0 3px 10px rgba(29,70,108,.035);
        font: 400 14px/1.4 "Segoe UI",Arial,sans-serif;
        transition: border-color .2s,box-shadow .2s,background .2s,transform .2s;
    }

        body.auth .form-control::placeholder {
            color: #8197ae;
            opacity: 1;
        }

        body.auth .form-control:hover {
            border-color: #b7d4e9;
            background: #fff;
        }

        body.auth .form-control:focus {
            border-color: #1b9de0;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(27,157,224,.13),0 6px 16px rgba(12,76,129,.07);
        }

    body.auth select.form-control {
        cursor: pointer;
    }

    body.auth .text-danger, body.auth .validation-summary-errors {
        margin: 0 0 12px;
        color: #b42335;
        font-size: 13px;
        line-height: 1.45;
    }

        body.auth .validation-summary-errors ul {
            margin: 0;
            padding-left: 18px;
        }

    /* Primary action */
    body.auth .btn, body.auth button[type="submit"] {
        display: block;
        width: 100%;
        min-height: 51px;
        margin: 18px 0 0;
        padding: 13px 18px;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 13px;
        color: #fff;
        background: linear-gradient(105deg,#167fe0,#128fc4 52%,#1768ad);
        box-shadow: 0 10px 22px rgba(15,111,183,.25),inset 0 1px 0 rgba(255,255,255,.2);
        font: 700 14px/1.4 "Segoe UI",Arial,sans-serif;
        letter-spacing: .35px;
        text-align: center;
        text-transform: uppercase;
        cursor: pointer;
        transition: transform .2s,box-shadow .2s,filter .2s;
    }

        body.auth .btn:hover, body.auth button[type="submit"]:hover {
            transform: translateY(-2px);
            filter: brightness(1.06);
            box-shadow: 0 14px 26px rgba(15,111,183,.32),inset 0 1px 0 rgba(255,255,255,.25);
        }

        body.auth .btn:active, body.auth button[type="submit"]:active {
            transform: translateY(0);
        }

    /* Social links */
    body.auth .social-links {
        margin: 23px 0 0;
        text-align: center;
        color: rgba(245,250,255,.92);
    }

        body.auth .social-links h3 {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin: 0 0 15px;
            color: rgba(245,250,255,.96);
            font-size: 15px;
            font-weight: 600;
            line-height: 1.4;
        }

            body.auth .social-links h3::before, body.auth .social-links h3::after {
                content: "";
                display: block;
                width: 48px;
                height: 1px;
                background: linear-gradient(90deg,transparent,rgba(180,220,247,.55));
            }

            body.auth .social-links h3::after {
                transform: rotate(180deg);
            }

        body.auth .social-links .login {
            display: inline-block;
        }

        body.auth .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            margin: 0 5px;
            border: 1px solid rgba(207,231,250,.42);
            border-radius: 50%;
            background: rgba(255,255,255,.075);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
            transition: transform .2s,background .2s,border-color .2s;
        }

            body.auth .social-links a:hover {
                transform: translateY(-3px);
                border-color: rgba(99,207,255,.9);
                background: rgba(31,155,224,.24);
            }

            body.auth .social-links a img {
                display: block;
                width: 20px;
                height: 20px;
                max-width: 100%;
                object-fit: contain;
            }

    /* Footer */
    body.auth .footer {
        position: absolute;
        right: 20px;
        bottom: 22px;
        left: 20px;
        z-index: 1;
        margin: 0;
        color: rgba(225,239,251,.78);
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
    }

        body.auth .footer p {
            margin: 0;
        }

        body.auth .footer a {
            color: #d9efff;
            text-decoration: none;
        }

            body.auth .footer a:hover {
                color: #fff;
                text-decoration: underline;
            }

/* Animation keyframes */
@keyframes parthBgSweep {
    0% {
        background-position: 0% 0%,100% 100%
    }

    50% {
        background-position: 60% 35%,30% 70%
    }

    100% {
        background-position: 100% 70%,0% 10%
    }
}

@keyframes parthRibbonA {
    0% {
        transform: translate3d(-5vw,-2vh,0) rotate(-19deg) scale(.92)
    }

    50% {
        transform: translate3d(8vw,4vh,0) rotate(-12deg) scale(1.08)
    }

    100% {
        transform: translate3d(15vw,-1vh,0) rotate(-17deg) scale(1)
    }
}

@keyframes parthRibbonB {
    0% {
        transform: translate3d(8vw,3vh,0) rotate(-20deg) scale(1.04)
    }

    50% {
        transform: translate3d(-7vw,-4vh,0) rotate(-12deg) scale(.94)
    }

    100% {
        transform: translate3d(-15vw,1vh,0) rotate(-17deg) scale(1.08)
    }
}

@keyframes parthPulseA {
    0%,100% {
        opacity: .36
    }

    50% {
        opacity: .9
    }
}

@keyframes parthPulseB {
    0%,100% {
        opacity: .32
    }

    50% {
        opacity: .78
    }
}

@keyframes parthLightLine {
    0% {
        transform: translate3d(-7vw,0,0) scaleX(.65);
        opacity: .06
    }

    50% {
        transform: translate3d(5vw,-1vh,0) scaleX(1.08);
        opacity: .3
    }

    100% {
        transform: translate3d(13vw,1vh,0) scaleX(.75);
        opacity: .1
    }
}

@keyframes parthAmbient {
    0% {
        transform: translate3d(-3%,-2%,0) scale(1)
    }

    50% {
        transform: translate3d(3%,2%,0) scale(1.08)
    }

    100% {
        transform: translate3d(-1%,4%,0) scale(1.03)
    }
}

@keyframes parthGrid {
    from {
        background-position: 0 0
    }

    to {
        background-position: 68px 68px
    }
}

@keyframes parthCardEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.99)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

/* Responsive */
@media (max-width:520px) {
    body.auth {
        min-height: 100svh;
        padding: 28px 16px 78px;
        align-items: flex-start;
    }

        body.auth .box {
            margin-top: clamp(10px,5vh,38px);
        }

        body.auth .logo {
            margin-bottom: 18px;
        }

            body.auth .logo img {
                max-width: 160px;
                max-height: 64px;
            }

        body.auth .body {
            padding: 23px 19px 24px;
            border-radius: 20px;
        }

            body.auth .body > .row {
                margin-bottom: 18px;
            }

        body.auth .form-control {
            height: 49px;
        }

        body.auth .footer {
            bottom: 14px;
            font-size: 11px;
        }

        body.auth .stripes-wraper::before, body.auth .stripes-wraper::after {
            width: 120vw;
            height: 24vh;
        }
}

@media (max-height:680px) and (min-width:521px) {
    body.auth {
        align-items: flex-start;
        padding-top: 22px;
        padding-bottom: 70px;
    }

        body.auth .logo {
            margin-bottom: 14px;
        }

            body.auth .logo img {
                max-height: 58px;
            }

        body.auth .body {
            padding-top: 21px;
            padding-bottom: 22px;
        }

        body.auth .footer {
            bottom: 10px;
        }
}

@media (prefers-reduced-motion:reduce) {
    body.auth *, body.auth *::before, body.auth *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
