﻿:root {
    --brand-primary-ring: rgba(26, 60, 94, 0.18);
    --danger: #dc2626;
    --danger-bg: #fff1f2;
    --danger-bd: #fecdd3;
    --r-inp: 10px;
    --r-btn: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    min-height: 100vh;
    display: flex;
    background: var(--brand-primary-50);
}

/* LEFT PANEL */
.left-panel {
    width: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg,color-mix(in srgb, var(--brand-primary) 65%, black) 30%,var(--brand-primary) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
}

    .left-panel::before {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        border: 80px solid rgba(255, 255, 255, 0.05);
        top: -160px;
        right: -160px;
        pointer-events: none;
    }

    .left-panel::after {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        border: 60px solid rgba(255, 255, 255, 0.04);
        bottom: -100px;
        left: -80px;
        pointer-events: none;
    }

.geo-ring {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    bottom: 160px;
    right: -60px;
    pointer-events: none;
}

.geo-dots {
    position: absolute;
    bottom: 60px;
    right: 52px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    pointer-events: none;
}

    .geo-dots span {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
        display: block;
    }
.md-hide {
    display: none;
    order: -2;
    background: linear-gradient(135deg,color-mix(in srgb, var(--brand-primary) 65%, black) 30%,var(--brand-primary) 100%);
}

    .md-hide  .lp-logo {
        width:110px;
    }

.lp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.lp-logo {
    max-width: 200px;
    padding:20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.lp-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.4px;
}


.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.03em;
    margin-bottom: 24px;
    width: fit-content;
}

.lp-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
    flex-shrink: 0;
}

.lp-headline {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

    .lp-headline em {
        font-style: normal;
        color: rgba(255, 255, 255, 0.45);
    }

.lp-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    max-width: 320px;
    margin-bottom: 36px;
}

.lp-stats {
    display: flex;
    gap: 28px;
}

.lp-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lp-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.lp-stat-label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.lp-stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    align-self: stretch;
}

.lp-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 36px;
    width:60%;
}

.lp-feat {
    position:relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration:none;
}
.lp-feat:hover {
   
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.2);
   
}
.lp-feat-overlay {
    font-size: 1.60rem;
    color: var(--brand-light);
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.lp-feat:hover .lp-feat-overlay {
    opacity: 0.7;
}
.lp-feat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.lp-feat-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-light);
    margin-bottom: 1px;
}

.lp-feat-desc {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
}

.lp-footer {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}
    .lp-footer a {
        color: rgba(255, 255, 255, 0.3);
    }
    /* RIGHT PANEL */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #fff;
    /*background: var(--bs-body-bg);*/
}

.form-card {
    width: 100%;
    max-width: 480px;
    animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fc-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-primary-900);
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}

.fc-sub {
    font-size: 13.5px;
    color: var(--brand-primary-800);
    margin-bottom: 32px;
}

.field {
    margin-bottom: 18px;
}

.field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}
.field input {
    width: 100%;
    height: 46px;
    border: 1.5px solid var(--brand-primary-400);
    border-radius: var(--r-inp);
    background: color-mix(in srgb, var(--brand-primary-200) 8%,white);
    color: var(--brand-primary-900);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field select {
    width: 100%;
    height: 46px;
    color: var(--brand-primary-900);
    border: 1.5px solid var(--brand-primary-400);
    background-color: color-mix(in srgb, var(--brand-primary-200) 8%, white);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.form-card .form-check-input {
    border: 1.5px solid var(--brand-primary-400);
    margin-top:0;
}


    .field input::placeholder {
        color: var(--brand-primary-200);
    }

    .field input:focus {
        border-color: var(--brand-primary);
        background: #fff;
        box-shadow: 0 0 0 3.5px var(--brand-primary-ring);
    }

.lbl {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary-800);
}

.forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.15s;
}

    .forgot-link:hover {
        color: var(--brand-secondary);
        text-decoration: underline;
    }

.inp-wrap {
    position: relative;
}

    .inp-wrap .ico {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--brand-primary-800);
        font-size: 16px;
        pointer-events: none;
        transition: color 0.15s;
    }

    .inp-wrap:focus-within .ico {
        color: var(--brand-primary);
    }

    .inp-wrap input {
        padding: 0 44px 0 42px !important;
    }

.pwd-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--brand-primary-800);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    line-height: 1;
    font-size: 17px;
    transition: color 0.15s, background 0.15s;
}

    .pwd-toggle:hover {
        color: var(--brand-primary-700);
        background: var(--brand-primary-100);
    }

.btn-login {
    width: 100%;
    height: 48px;
    border-radius: var(--r-btn);
    background: var(--color-crimson);
    color: #fff;
    border: none;
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    letter-spacing: 0.01em;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    box-shadow: 0 2px 10px rgba(26, 60, 94, 0.32);
    margin-top: 6px;
}

    .btn-login:hover {
        background: var(--crimson-700);
        box-shadow: 0 6px 20px rgba(26, 60, 94, 0.4);
        transform: translateY(-1px);
        color: #fff;
    }

    .btn-login:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(26, 60, 94, 0.22);
        color: #fff;
    }

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.btn-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    display: none;
    flex-shrink: 0;
}

.btn-login.loading .btn-spinner {
    display: block;
}

.btn-login.loading .btn-text {
    display: none;
}

.alert-err {
    display: none;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    padding: 11px 14px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-bd);
    border-radius: 9px;
    font-size: 13px;
    color: var(--danger);
    font-weight: 500;
}

    .alert-err.show {
        display: flex;
    }

    .alert-err i {
        font-size: 16px;
        flex-shrink: 0;
        margin-top: 1px;
    }

.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--brand-primary-100);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--brand-primary-400);
    font-weight: 500;
}

    .trust-item i {
        font-size: 14px;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    display: inline-block;
    animation: spin .8s linear infinite;
}

/* ─── Responsive ───────────────────────────────────────────────────── */

/* Large laptops — feature cards no longer fit at 60% width */
@media (max-width: 1399.98px) {
    .lp-features { width: 85%; }
}

/* Small laptops / landscape tablets */
@media (max-width: 1199.98px) {
    .left-panel  { padding: 40px 36px; }
    .lp-features { width: 100%; }
    .lp-headline { font-size: 28px; }
}

/* Tablets and below — stack panels, sign-in form first */
@media (max-width: 991.98px) {
    body { flex-direction: column; }
    .md-view
    {
        display:none;
    }
    .md-hide {
        display: block;
    }
    .right-panel {
        order: -1; /* form on top, brand/info panel scrolls below */
        flex: 0 0 auto;
        padding: 32px 20px;
    }

    .left-panel {
        width: 100%;
        padding: 36px 24px;
        gap: 28px;
    }

    .left-panel::before { width: 360px; height: 360px; border-width: 56px; top: -150px; right: -150px; }
    .left-panel::after,
    .geo-ring,
    .geo-dots { display: none; }

    .lp-stats    { flex-wrap: wrap; row-gap: 14px; }
    .lp-features { margin-top: 28px; }
    .lp-feat     { max-width: none !important; }
}

/* Phones */
@media (max-width: 575.98px) {
    .right-panel { padding: 24px 14px; }
    .fc-title    { font-size: 21px; }
    .fc-sub      { margin-bottom: 24px; }

    /* 16px stops iOS Safari from zooming the page when an input gains focus */
    .field input,
    .field select { font-size: 16px; }

    .left-panel    { padding: 28px 18px; }
    .lp-logo       { max-width: 160px; padding: 14px; }
    .lp-brand-name { font-size: 14px; }
    .lp-headline   { font-size: 17px; }

    .lp-stats        { gap: 16px; }
    .lp-stat-divider { display: none; }
    .lp-stat-num     { font-size: 14px; }

    .trust-row { gap: 12px 18px; flex-wrap: wrap; }
}