
:root {
    --navy: #071e38;
    --navy-light: #0b315a;
    --cyan: #008caa;
    --text: #0b2343;
    --muted: #657998;
    --border: #d1dbe8;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
}

.login-page {
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 100vh;
}

/* LEFT PANEL */

.brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 44px 10.5% 38px;
    color: white;
    background:
        radial-gradient(ellipse at 85% 0%,
            #174c7c 0%, transparent 48%),
        linear-gradient(145deg,
            #103f69 0%, #061b34 58%, #082a4d 100%);
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 2;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.5px;
    white-space: nowrap;
}

.brand-top svg {
    flex-shrink: 0;
}

.brand-content {
    position: relative;
    z-index: 2;
    margin-top: clamp(85px, 15vh, 155px);
}

.brand-content h1 {
    margin: 0;
    font-size: clamp(33px, 3.1vw, 54px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.9px;
}

.brand-subtitle {
    margin: 22px 0 35px;
    color: #a9cbed;
    font-size: clamp(17px, 1.55vw, 25px);
    line-height: 1.5;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 23px;
    font-size: clamp(14px, 1.16vw, 19px);
    white-space: nowrap;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    color: #7de0ff;
    border-radius: 11px;
    background: linear-gradient(140deg, #184f79, #0b365b);
}

.feature-icon svg {
    width: 29px;
    height: 29px;
}

.network-art {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 45px;
    opacity: .95;
    pointer-events: none;
}

.network-art svg {
    display: block;
    width: 100%;
}

.brand-footer {
    position: absolute;
    z-index: 2;
    left: 10.5%;
    bottom: 35px;
    font-size: 14px;
    color: #9abfe1;
}

/* RIGHT PANEL */

.form-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 40px 75px;
    background:
        radial-gradient(ellipse at center,
            #ffffff 25%, #f1f6fa 100%);
}

.form-wrapper {
    width: 100%;
    max-width: 580px;
}

.login-card {
    width: 100%;
    padding: 43px 38px 32px;
    border: 1px solid #d9e2eb;
    border-radius: 12px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 26px rgba(30,61,96,.035);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    border-radius: 12px;
    background: linear-gradient(145deg, #00819d, #0093b0);
    box-shadow: 0 5px 13px rgba(0,126,156,.16);
}

.login-logo svg {
    width: 41px;
    height: 41px;
}

.login-card h2 {
    margin: 0;
    text-align: center;
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -.7px;
}

.welcome-desc {
    margin: 10px 0 36px;
    text-align: center;
    font-size: 17px;
    color: var(--muted);
}

.field {
    margin-bottom: 23px;
}

.field > label {
    display: block;
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 650;
}

.input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    gap: 14px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.input-wrap:focus-within {
    border-color: #058baa;
    box-shadow: 0 0 0 3px rgba(0,140,170,.12);
}

.input-wrap > svg {
    width: 23px;
    height: 23px;
    color: #667e9e;
    flex-shrink: 0;
}

.input-wrap input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
}

.input-wrap input::placeholder {
    color: #8294ad;
}

.toggle-password {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 35px;
    padding: 3px;
    border: 0;
    background: transparent;
    color: #657b9c;
    cursor: pointer;
}

.toggle-password svg {
    width: 23px;
    height: 23px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 24px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
}

.remember input {
    width: 21px;
    height: 21px;
    margin: 0;
    accent-color: var(--cyan);
    cursor: pointer;
}

.help-link {
    color: #0089aa;
    cursor: default;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(100deg, #0084a0, #0094ad);
    color: white;
    font-family: inherit;
    font-size: 17px;
    font-weight: 650;
    cursor: pointer;
    transition: filter .2s, transform .2s;
}

.submit-button:hover {
    filter: brightness(1.08);
}

.submit-button:active {
    transform: translateY(1px);
}

.submit-button span {
    font-size: 27px;
    font-weight: 400;
}

.card-footer {
    margin-top: 26px;
    padding-top: 23px;
    border-top: 1px solid #d9e2eb;
    text-align: center;
    color: #70819d;
    font-size: 13px;
}

.support {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #7588a5;
}

.support span {
    color: #0089aa;
    font-weight: 600;
}

.page-footer {
    position: absolute;
    right: 36px;
    bottom: 27px;
    font-size: 12px;
    color: #7e8ea9;
}

.validation-error,
.field-error {
    color: #be3447;
    font-size: 13px;
}

.validation-error:not(:empty) {
    margin-bottom: 17px;
}

.validation-error ul {
    margin: 0;
    padding-left: 20px;
}

.field-error:not(:empty) {
    display: block;
    margin-top: 6px;
}

@media (max-width: 1100px) {
    .brand-panel {
        padding-left: 7%;
        padding-right: 5%;
    }

    .brand-top {
        font-size: 22px;
    }

    .feature {
        white-space: normal;
    }

    .login-card {
        padding: 35px 27px;
    }
}

@media (max-width: 760px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: auto;
        padding: 20px 24px;
    }

    .brand-top {
        font-size: 20px;
    }

    .brand-top svg {
        width: 35px;
        height: 35px;
    }

    .brand-content,
    .network-art,
    .brand-footer {
        display: none;
    }

    .form-panel {
        min-height: calc(100vh - 76px);
        padding: 28px 18px 65px;
    }

    .login-card {
        padding: 35px 23px 27px;
    }

    .login-card h2 {
        font-size: 27px;
    }

    .welcome-desc {
        font-size: 14px;
    }

    .page-footer {
        right: 0;
        left: 0;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
    }
}
