﻿
:root {
    --primary: #1769f5;
    --primary-dark: #0b4bc4;
    --text: #14213d;
    --muted: #8290a8;
    --border: #dce5f1;
    --surface: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(ellipse at 5% 10%, #d9e9ff 0, transparent 35%), radial-gradient(ellipse at 95% 90%, #e2edff 0, transparent 35%), #f5f8fd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

button,
input {
    font: inherit;
}

.login-shell {
    width: 100%;
    max-width: 1480px;
    min-height: 800px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: white;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(32, 69, 125, .13);
}

/* BRAND PANEL */

.brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 66px 58px 32px;
    color: white;
    background: radial-gradient(ellipse at 70% 45%, rgba(39,139,255,.38), transparent 45%), linear-gradient(145deg, #0c2348 0%, #123d77 54%, #07508c 100%);
}

    .brand-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 40%, rgba(5,22,48,.62)), repeating-linear-gradient( 0deg, transparent, transparent 59px, rgba(255,255,255,.035) 60px );
        pointer-events: none;
    }

.brand-content,
.feature-list,
.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: white;
    font-size: 35px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1.4px;
    text-decoration: none;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #42a5ff;
    font-size: 54px;
}

.brand-divider {
    width: 56px;
    height: 4px;
    margin: 29px 0;
    border-radius: 10px;
    background: #3da5ff;
}

.brand-tagline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    font-size: 15px;
    font-weight: 500;
    color: #e2eeff;
}

    .brand-tagline i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #63c4ff;
    }

.brand-content h1 {
    margin: 34px 0 14px;
    font-size: clamp(30px, 3vw, 43px);
    letter-spacing: -1.5px;
    line-height: 1.18;
    font-weight: 800;
}

.brand-description {
    max-width: 420px;
    color: #ccdef7;
    font-size: 15px;
    line-height: 1.9;
}

.visual-chart {
    position: relative;
    height: 190px;
    margin-top: 28px;
    overflow: hidden;
}

.chart-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 48px 38px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.chart-bars {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: space-around;
    gap: 12px;
    padding: 0 10px;
}

    .chart-bars span {
        flex: 1;
        height: var(--h);
        max-width: 38px;
        border-radius: 5px 5px 0 0;
        background: linear-gradient(180deg, #4fc3ff, rgba(32,145,255,.16));
        border: 1px solid rgba(113,201,255,.4);
    }

.chart-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

    .chart-line polyline {
        fill: none;
        stroke: #b8e8ff;
        stroke-width: 2.5;
        vector-effect: non-scaling-stroke;
    }

    .chart-line circle {
        fill: #e8f8ff;
        stroke: #49adff;
        stroke-width: 2;
        vector-effect: non-scaling-stroke;
    }

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 25px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 118px;
    padding: 19px 16px;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 15px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
}

    .feature-card i {
        font-size: 25px;
        color: white;
    }

    .feature-card span {
        font-size: 12px;
        line-height: 1.6;
        font-weight: 500;
    }

.brand-footer {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 34px;
    color: #aec7e8;
    font-size: 10px;
}

    .brand-footer span:first-child {
        color: white;
        font-weight: 800;
        font-size: 13px;
        letter-spacing: 1px;
    }

/* LOGIN PANEL */

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px clamp(30px, 5vw, 78px);
    background: linear-gradient(145deg, #fff 0%, #f9fbff 100%);
}

.login-card {
    width: 100%;
    max-width: 440px;
}

.mobile-logo {
    display: none;
}

.form-heading {
    text-align: center;
    margin-bottom: 30px;
}

.heading-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    color: white;
    border-radius: 16px;
    background: linear-gradient(145deg, #398cff, #0958e8);
    box-shadow: 0 8px 20px rgba(23,105,245,.22);
    font-size: 25px;
}

.form-heading h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.9px;
}

.welcome-text {
    margin: 22px 0 5px;
    color: #4f607b;
    font-size: 18px;
    font-weight: 600;
}

.subtitle {
    margin: 0;
    color: #96a2b6;
    font-size: 13px;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 21px;
}

    .form-group label {
        display: block;
        margin-bottom: 9px;
        font-size: 13px;
        font-weight: 650;
        color: #26354e;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #8493aa;
    font-size: 16px;
    pointer-events: none;
}

.form-input {
    display: block;
    width: 100%;
    height: 53px;
    padding: 0 44px 0 47px;
    color: #172943;
    font-size: 13px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

    .form-input::placeholder {
        color: #9aa7ba;
    }

    .form-input:hover {
        border-color: #b7c9e5;
    }

    .form-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(23,105,245,.09);
        background: #fff;
    }

.password-toggle {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: #8493aa;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

    .password-toggle:hover {
        color: var(--primary);
        background: #f1f6ff;
    }

/* CAPTCHA */

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px;
    gap: 12px;
    margin-bottom: 12px;
}

.captcha-image {
    height: 63px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f5f7fa;
}

    .captcha-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.refresh-button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--primary);
    background: #edf4ff;
    font-size: 18px;
    cursor: pointer;
    transition: .2s;
}

    .refresh-button:hover {
        background: #dceaff;
        transform: rotate(-8deg);
    }

    .refresh-button:active {
        transform: scale(.95);
    }

.captcha-input-wrapper .form-input {
    padding-left: 47px;
}

.login-button {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 7px;
    color: white;
    font-weight: 650;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(105deg, #1769f5, #2475f8);
    box-shadow: 0 8px 18px rgba(23,105,245,.16);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

    .login-button:hover {
        background: linear-gradient(105deg, #0e57d7, #1769f5);
        box-shadow: 0 11px 24px rgba(23,105,245,.24);
        transform: translateY(-1px);
    }

    .login-button:active {
        transform: translateY(0);
    }

    .login-button:disabled {
        cursor: wait;
        opacity: .75;
    }

.secure-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: #8b98ac;
    font-size: 11px;
}

    .secure-note i {
        color: #4a9a78;
    }

.copyright {
    margin-top: 20px;
    text-align: center;
    color: #a4afbf;
    font-size: 10px;
}

.field-error,
.validation-summary {
    display: block;
    margin-top: 6px;
    color: #d92d45;
    font-size: 11px;
}

    .validation-summary ul {
        margin: 0 0 12px;
        padding-left: 18px;
    }

.alert-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #ffd4d9;
    border-radius: 9px;
    background: #fff3f4;
    color: #bd233b;
    font-size: 12px;
    line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    body {
        padding: 18px;
    }

    .login-shell {
        grid-template-columns: .85fr 1fr;
        min-height: 720px;
    }

    .brand-panel {
        padding: 45px 32px 25px;
    }

    .brand-logo {
        font-size: 28px;
    }

    .brand-content h1 {
        font-size: 32px;
    }

    .feature-list {
        gap: 8px;
    }

    .feature-card {
        padding: 14px 10px;
    }

    .form-panel {
        padding: 35px 30px;
    }
}

@media (max-width: 760px) {
    body {
        display: block;
        padding: 14px;
    }

    .login-shell {
        display: block;
        min-height: auto;
        border-radius: 20px;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: calc(100vh - 28px);
        padding: 32px 23px;
        border-radius: 20px;
    }

    .login-card {
        max-width: 440px;
        margin: auto;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 36px;
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -.5px;
    }

        .mobile-logo .logo-icon {
            font-size: 27px;
        }

    .heading-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .form-heading h2 {
        font-size: 22px;
    }

    .welcome-text {
        font-size: 17px;
    }
}

@media (max-width: 380px) {
    .form-panel {
        padding: 25px 16px;
    }

    .mobile-logo {
        font-size: 15px;
    }

    .form-heading h2 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
