/* =========================================================
   SAHAYAK IP INTELLIGENCE
   PROFESSIONAL LOGIN
   ========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body.login-page {
    min-height: 100vh;
    background: #060b18;
    color: #e8eefb;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at 15% 20%, rgba(31, 112, 190, .12), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(91, 67, 190, .12), transparent 35%),
        #060b18;
}

/* =========================================================
   LEFT PANEL
   ========================================================= */

.login-intelligence {
    position: relative;
    width: 57%;
    min-height: 100vh;
    overflow: hidden;
    padding: 52px 7%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(135deg, #07101f 0%, #0a1427 48%, #10172f 100%);
    border-right: 1px solid rgba(111, 143, 196, .14);
}

.tech-grid {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(75, 126, 191, .11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(75, 126, 191, .11) 1px, transparent 1px);
    background-size: 46px 46px;
    transform: perspective(700px) rotateX(55deg) scale(1.7);
    transform-origin: center bottom;
    pointer-events: none;
}

.tech-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .18;
    pointer-events: none;
}

.glow-one {
    top: 5%;
    left: 15%;
    background: #1487d4;
}

.glow-two {
    right: -10%;
    bottom: 0;
    background: #694bd1;
}

.brand-block,
.intelligence-content,
.intel-footer {
    position: relative;
    z-index: 3;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-emblem {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(67, 196, 255, .55);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(22, 113, 177, .35), rgba(33, 47, 94, .4));
    box-shadow: 0 0 30px rgba(32, 169, 255, .12);
}

.brand-emblem span {
    color: #48c9ff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-name {
    color: #f3f7ff;
    font-size: 21px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 3px;
}

.brand-caption {
    margin-top: 5px;
    color: #7185a8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
}

.intelligence-content {
    max-width: 620px;
    margin-top: 5vh;
    margin-bottom: 5vh;
}

.system-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #6d9ec7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.status-light,
.secure-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: #35dfa4;
    box-shadow: 0 0 12px rgba(53, 223, 164, .7);
}

.intelligence-content h1 {
    margin: 0;
    color: #eef5ff;
    font-size: clamp(40px, 4.3vw, 66px);
    line-height: 1.06;
    font-weight: 300;
    letter-spacing: -2px;
}

.intelligence-content h1 strong {
    display: block;
    color: #42c7ff;
    font-weight: 700;
}

.intelligence-content p {
    max-width: 560px;
    margin: 25px 0 0;
    color: #8193b1;
    font-size: 15px;
    line-height: 1.8;
}

.intelligence-features {
    margin-top: 38px;
    display: grid;
    gap: 14px;
}

.intel-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 17px;
    max-width: 510px;
    border: 1px solid rgba(98, 132, 179, .14);
    border-radius: 12px;
    background: rgba(12, 26, 48, .45);
    backdrop-filter: blur(8px);
}

.feature-symbol {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #45c7ff;
    background: rgba(50, 143, 204, .11);
    border: 1px solid rgba(65, 185, 240, .17);
    font-size: 10px;
    font-weight: 800;
}

.intel-feature strong {
    display: block;
    color: #dfe9f8;
    font-size: 13px;
    margin-bottom: 4px;
}

.intel-feature span {
    display: block;
    color: #71839f;
    font-size: 11px;
}

.intel-footer {
    display: flex;
    justify-content: space-between;
    color: #4c607d;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Decorative network */
.network-map {
    position: absolute;
    right: 4%;
    top: 14%;
    width: 360px;
    height: 330px;
    opacity: .45;
}

.node {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 2px solid #42c7ff;
    border-radius: 50%;
    background: #081326;
    box-shadow: 0 0 15px rgba(66, 199, 255, .6);
}

.n1 { left: 20px; top: 130px; }
.n2 { left: 110px; top: 45px; }
.n3 { left: 205px; top: 105px; }
.n4 { left: 300px; top: 40px; }
.n5 { left: 280px; top: 205px; }
.n6 { left: 145px; top: 255px; }

.connection {
    position: absolute;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(66, 199, 255, .05), rgba(66, 199, 255, .55), rgba(66, 199, 255, .05));
}

.c1 { width: 130px; left: 28px; top: 134px; transform: rotate(-27deg); }
.c2 { width: 113px; left: 117px; top: 50px; transform: rotate(32deg); }
.c3 { width: 110px; left: 212px; top: 110px; transform: rotate(-32deg); }
.c4 { width: 105px; left: 210px; top: 113px; transform: rotate(49deg); }
.c5 { width: 150px; left: 151px; top: 260px; transform: rotate(-22deg); }

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.login-access {
    width: 43%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 6%;
    background: #080d1a;
}

.login-card {
    width: 100%;
    max-width: 440px;
}

.mobile-brand {
    display: none;
}

.login-heading {
    margin-bottom: 38px;
}

.login-kicker {
    margin-bottom: 12px;
    color: #42c7ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.login-heading h2 {
    margin: 0;
    color: #f1f5fc;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.7px;
}

.login-heading p {
    margin: 10px 0 0;
    color: #7586a2;
    font-size: 13px;
    line-height: 1.6;
}

.login-field {
    margin-bottom: 22px;
}

.login-field label {
    display: block;
    margin: 0 0 9px 2px;
    color: #8597b5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
    height: 56px;
    border: 1px solid #253452;
    border-radius: 11px;
    background: #0d1527;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-box:focus-within {
    border-color: #348fbe;
    background: #0f192e;
    box-shadow: 0 0 0 3px rgba(52, 143, 190, .08);
}

.field-icon {
    width: 47px;
    flex: 0 0 47px;
    text-align: center;
    color: #4c83a5;
    font-size: 11px;
}

.login-input {
    width: 100%;
    height: 100%;
    padding: 0 14px 0 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #e6edf8 !important;
    font-size: 14px;
    box-shadow: none !important;
}

.login-input::placeholder {
    color: #52647f !important;
}

.password-input {
    padding-right: 62px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    padding: 5px 4px;
    background: transparent;
    color: #4c9fc6;
    cursor: pointer;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.password-toggle:hover {
    color: #66d2ff;
}

.login-security-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 4px 2px 23px;
    color: #596b88;
    font-size: 10px;
}

.login-security-row span:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #70839f;
}

.login-button {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #1879ae, #2858a4);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(19, 103, 159, .18);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 15px 34px rgba(19, 103, 159, .28);
}

.login-button:active {
    transform: translateY(0);
}

.login-message {
    display: block;
    min-height: 22px;
    margin-top: 13px;
    color: #ff7287;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
}

.login-bottom-line {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 48px;
}

.login-bottom-line span {
    height: 1px;
    flex: 1;
    background: #1a263c;
}

.login-bottom-line b {
    color: #425473;
    font-size: 8px;
    letter-spacing: 2px;
}

.login-footer {
    margin-top: 19px;
    text-align: center;
}

.login-footer strong {
    display: block;
    color: #637695;
    font-size: 9px;
    letter-spacing: 1.7px;
}

.login-footer small {
    display: block;
    margin-top: 7px;
    color: #3f4e67;
    font-size: 8px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .login-intelligence {
        width: 50%;
        padding: 42px 5%;
    }

    .login-access {
        width: 50%;
        padding: 42px 5%;
    }

    .network-map {
        opacity: .2;
        right: -15%;
    }
}

@media (max-width: 760px) {
    .login-shell {
        display: block;
    }

    .login-intelligence {
        display: none;
    }

    .login-access {
        width: 100%;
        min-height: 100vh;
        padding: 30px 22px;
        align-items: center;
    }

    .login-card {
        max-width: 470px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-bottom: 48px;
    }

    .brand-emblem.small {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .mobile-brand .brand-name {
        font-size: 18px;
    }

    .login-heading h2 {
        font-size: 31px;
    }
}

@media (max-width: 420px) {
    .login-access {
        padding: 25px 18px;
    }

    .login-heading {
        margin-bottom: 30px;
    }

    .login-heading h2 {
        font-size: 29px;
    }

    .login-security-row {
        font-size: 9px;
    }

    .login-bottom-line {
        margin-top: 38px;
    }
}
