*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html,
body {
    height: 100%;
    overflow: hidden;
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
}

/* ══ LAYOUT ══ */
.login-page {
    display: flex;
    height: 100vh;
}

/* ══ LEFT PANEL ══ */
.left {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #0d1b2a;
    display: flex;
    flex-direction: column;
    padding: 32px 36px 28px;
}

/* Dot grid */
.left::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(77, 159, 255, 0.1) 1px,
        transparent 1px
    );
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Glow orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(77, 159, 255, 0.2);
    top: -180px;
    right: -120px;
}
.orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(26, 60, 94, 0.5);
    bottom: -80px;
    left: -80px;
}
.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(77, 159, 255, 0.1);
    top: 50%;
    right: 5%;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    z-index: 2;
    flex-shrink: 0;
}
.brand-icon {
    width: 40px;
    height: 40px;
    background: #4d9fff;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(77, 159, 255, 0.4);
}
.brand-name {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* Hero */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    padding: 16px 0;
    max-width: 52%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(77, 159, 255, 0.12);
    border: 1px solid rgba(77, 159, 255, 0.28);
    color: #4d9fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 13px;
    border-radius: 20px;
    margin-bottom: 22px;
    width: fit-content;
}
.hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
}
.hero-title em {
    color: #4d9fff;
    font-style: normal;
}
.hero-sub {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 310px;
}
.feats {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.feats li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.5px;
    font-weight: 600;
}
.feat-ico {
    width: 24px;
    height: 24px;
    background: rgba(77, 159, 255, 0.18);
    border: 1px solid rgba(77, 159, 255, 0.35);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #4d9fff;
    flex-shrink: 0;
}

/* Trust */
.trust {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    flex-shrink: 0;
}
.avatars {
    display: flex;
}
.av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2.5px solid #0d1b2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    margin-left: -9px;
    flex-shrink: 0;
}
.av:first-child {
    margin-left: 0;
}
.trust-txt {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}
.trust-stars {
    color: #f59e0b;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* ══ FLOATING CARDS ══ */
.fcard {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    min-width: 190px;
}
.fc-a {
    top: 15%;
    right: 4%;
    animation: flt1 7s ease-in-out infinite;
}
.fc-b {
    top: 42%;
    right: 15%;
    animation: flt2 9s ease-in-out infinite;
}
.fc-c {
    top: 66%;
    right: 3%;
    animation: flt3 8s ease-in-out infinite 1.2s;
}

@keyframes flt1 {
    0%,
    100% {
        transform: translateY(0) rotate(0.4deg);
    }
    50% {
        transform: translateY(-14px) rotate(-0.4deg);
    }
}
@keyframes flt2 {
    0%,
    100% {
        transform: translateY(0) rotate(-0.3deg);
    }
    35% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(6px) rotate(0.3deg);
    }
}
@keyframes flt3 {
    0%,
    100% {
        transform: translateY(0) rotate(0.5deg);
    }
    50% {
        transform: translateY(-12px) rotate(-0.2deg);
    }
}

.fc-hdr {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.fc-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.fc-badge {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.fc-val {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 5px;
}
.fc-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 5px;
}
.fc-up {
    color: #4ade80;
    font-weight: 700;
}
.fc-row {
    display: flex;
    align-items: center;
    gap: 9px;
}
.fc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fc-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.fc-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1px;
}
.fc-amt {
    margin-left: auto;
    font-size: 13px;
    font-weight: 800;
}
.fc-g-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 9px;
}
.fc-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 7px;
}
.fc-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #4d9fff, #38bdf8);
}
.fc-g-foot {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* ══ RIGHT PANEL ══ */
.right {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 40px;
    overflow-y: auto;
}
.form-wrap {
    width: 100%;
    max-width: 408px;
}

/* Form top */
.form-toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}
.form-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.form-brand-ico {
    width: 34px;
    height: 34px;
    background: #0d1b2a;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
}
.form-brand-name {
    font-size: 17px;
    font-weight: 800;
    color: #0d1b2a;
    letter-spacing: -0.02em;
}
.back-link {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}
.back-link:hover {
    color: #0d1b2a;
}

/* Headings */
.f-heading {
    font-size: 28px;
    font-weight: 800;
    color: #0d1b2a;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 6px;
}
.f-sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Error banner */
.err-banner {
    display: none;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 20px;
}

/* Success banner */
.ok-banner {
    display: none;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 20px;
}

/* Field */
.field {
    margin-bottom: 18px;
}
.field-lbl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}
.field-lbl label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}
.fgt-link {
    font-size: 12px;
    font-weight: 700;
    color: #4d9fff;
    text-decoration: none;
    transition: color 0.15s;
}
.fgt-link:hover {
    color: #0d1b2a;
    text-decoration: underline;
}
.inp-wrap {
    position: relative;
}
.inp-ico {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}
.f-input {
    width: 100%;
    padding: 11px 42px 11px 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 11px;
    font-size: 14px;
    color: #111827;
    background: #fafafa;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}
.f-input::placeholder {
    color: #9ca3af;
}
.f-input:focus {
    border-color: #4d9fff;
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(77, 159, 255, 0.13);
}
.f-input:focus + .inp-ico-abs,
.inp-wrap:focus-within .inp-ico {
    color: #4d9fff;
}
.f-input.ferr {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.field-hint {
    font-size: 18px;
    color: #dc2626;
    font-weight: 600;
    margin-top: 5px;
}
.eye-tog {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}
.eye-tog:hover {
    color: #4d9fff;
}

/* Remember */
.rem-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}
.rem-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    user-select: none;
}
.rem-label input {
    width: 15px;
    height: 15px;
    accent-color: #0d1b2a;
    cursor: pointer;
    flex-shrink: 0;
}

/* Login btn */
.btn-login {
    width: 100%;
    padding: 13px;
    background: #0d1b2a;
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s,
        box-shadow 0.2s,
        transform 0.1s;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.btn-login::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(77, 159, 255, 0.18), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
.btn-login:hover {
    background: #1a3c5e;
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.3);
}
.btn-login:hover::after {
    opacity: 1;
}
.btn-login:active {
    transform: scale(0.99);
}
.btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.btn-login.btn-ok {
    background: #16a34a;
}
.btn-login.btn-ok:hover {
    background: #15803d;
}

/* Divider */
.or-div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 18px;
}
.or-div::before,
.or-div::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.or-div span {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

/* Social */
.socials {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}
.btn-soc {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.15s,
        border-color 0.15s,
        box-shadow 0.15s;
}
.btn-soc:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #374151;
}

/* Register */
.reg-row {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}
.reg-row a {
    color: #4d9fff;
    text-decoration: none;
    font-weight: 700;
}
.reg-row a:hover {
    text-decoration: underline;
}

/* Demo hint */
.demo-hint {
    margin-top: 18px;
    padding: 10px 14px;
    background: #f0f9ff;
    border: 1px dashed #bae6fd;
    border-radius: 9px;
    font-size: 12px;
    color: #0369a1;
    font-weight: 600;
    text-align: center;
}
.demo-hint code {
    background: #e0f2fe;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 11.5px;
}

/* Modal */
.modal-content {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}
.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 20px;
}
.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 14px 20px;
}

/* Responsive */
@media (max-width: 860px) {
    .left {
        display: none;
    }
    .right {
        background: #f8fafc;
    }
}
