﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --nav-h: 62px;
    --bg: #04070e;
    --accent: #3b82f6;
    --accent-h: #2563eb;
    --accent-glow: rgba(59,130,246,0.22);
    --text: #e8edf8;
    --text-2: #7a8aaa;
    --text-3: #2a3547;
    --border: rgba(255,255,255,0.07);
    --inp-bg: rgba(255,255,255,0.05);
    --inp-border: rgba(255,255,255,0.10);
    --danger: #f87171;
    --font: 'Be Vietnam Pro', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: var(--font);
    color: var(--text);
}

.lp-wrap {
    display: flex;
    /* Trừ nav: tránh nav + 100vh > 1 màn hình và khoảng trống lớn trước footer */
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    width: 100vw;
}

/* ════════════════════════════════
           LEFT  70%
        ════════════════════════════════ */
.lp-left {
    flex: 0 0 70%;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    border-right: 1px solid var(--border);
}

/* Sky gradient */
.lp-sky {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 110% 60% at 50% -10%, rgba(55,40,200,0.20) 0%, transparent 60%), radial-gradient(ellipse 70% 50% at 10% 95%, rgba(37,99,235,0.12) 0%, transparent 55%), radial-gradient(ellipse 60% 40% at 90% 80%, rgba(124,58,237,0.10) 0%, transparent 50%);
}

/* Stars */
.lp-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.lp-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: star-tw var(--d) ease-in-out infinite var(--dl);
}

@keyframes star-tw {
    0%,100% {
        opacity: .07;
        transform: scale(1);
    }

    50% {
        opacity: .80;
        transform: scale(1.7);
    }
}

/* Central glow orb */
.lp-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: 640px;
    height: 560px;
    pointer-events: none;
    z-index: 2;
}

    .lp-orb::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: radial-gradient(ellipse 75% 65% at 50% 55%, rgba(109,40,217,0.18) 0%, rgba(59,130,246,0.10) 35%, transparent 68%);
        filter: blur(40px);
        animation: orb-breathe 6s ease-in-out infinite;
    }

    .lp-orb::after {
        content: '';
        position: absolute;
        top: 18%;
        left: 22%;
        right: 22%;
        bottom: 14%;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(139,92,246,0.28) 0%, rgba(99,102,241,0.14) 40%, transparent 70%);
        filter: blur(28px);
        animation: orb-breathe 6s ease-in-out infinite 1.2s reverse;
    }

@keyframes orb-breathe {
    0%,100% {
        opacity: .7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

/* ════════════════════════════════
           3D ICON OBJECTS
        ════════════════════════════════ */
.icon-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.ico3d {
    position: absolute;
    animation: ico-float var(--if) ease-in-out infinite var(--id);
    filter: var(--glow);
    transition: transform .3s;
}

/* Float keyframe */
@keyframes ico-float {
    0%,100% {
        transform: translateY(0px) rotate(var(--rot-s, 0deg));
    }

    33% {
        transform: translateY(var(--fy, -16px)) rotate(var(--rot-m, 4deg));
    }

    66% {
        transform: translateY(calc(var(--fy, -16px) * -0.5)) rotate(var(--rot-e, -3deg));
    }
}

.ico3d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Glow aura behind each icon */
.ico3d::before {
    content: '';
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    background: var(--aura);
    filter: blur(22px);
    z-index: -1;
    animation: aura-pulse var(--if) ease-in-out infinite var(--id);
}

@keyframes aura-pulse {
    0%,100% {
        opacity: .6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* ── Individual icon placement & glow colours ── */

/* React — top-centre-right, large */
.ico-react {
    width: 160px;
    height: 160px;
    top: 6%;
    left: 36%;
    --if: 7s;
    --id: 0s;
    --fy: -20px;
    --rot-s: -3deg;
    --rot-m: 4deg;
    --rot-e: -2deg;
    --glow: drop-shadow(0 0 22px rgba(97,218,251,0.85)) drop-shadow(0 0 50px rgba(97,218,251,0.40));
    --aura: radial-gradient(circle, rgba(97,218,251,0.35) 0%, transparent 70%);
}

/* JavaScript — mid-left */
.ico-js {
    width: 110px;
    height: 110px;
    top: 42%;
    left: 6%;
    --if: 8s;
    --id: -1.5s;
    --fy: -14px;
    --rot-s: 3deg;
    --rot-m: -4deg;
    --rot-e: 2deg;
    /* giảm sáng */
    --glow: drop-shadow(0 0 10px rgba(247,223,30,0.5)) drop-shadow(0 0 20px rgba(247,223,30,0.2));
    --aura: radial-gradient(circle, rgba(247,223,30,0.15) 0%, transparent 70%);
}

/* C# — top-left */
.ico-csharp {
    width: 95px;
    height: 95px;
    top: 14%;
    left: 7%;
    --if: 9s;
    --id: -3s;
    --fy: -12px;
    --rot-s: -2deg;
    --rot-m: 3deg;
    --rot-e: -2deg;
    --glow: drop-shadow(0 0 16px rgba(147,80,207,0.85)) drop-shadow(0 0 38px rgba(147,80,207,0.40));
    --aura: radial-gradient(circle, rgba(147,80,207,0.30) 0%, transparent 70%);
}

/* SQL — right side mid */
.ico-sql {
    width: 185px;
    height: 185px;
    top: 38%;
    left: 60%;
    --if: 6.5s;
    --id: -2s;
    --fy: -18px;
    --rot-s: 4deg;
    --rot-m: -3deg;
    --rot-e: 5deg;
    --glow: drop-shadow(0 0 18px rgba(0,150,220,0.85)) drop-shadow(0 0 44px rgba(0,150,220,0.38));
    --aura: radial-gradient(circle, rgba(0,150,220,0.28) 0%, transparent 70%);
}

/* VS Code — bottom-left area */
.ico-vs {
    width: 85px;
    height: 85px;
    bottom: 14%;
    left: 12%;
    --if: 7.5s;
    --id: -4s;
    --fy: -12px;
    --rot-s: -3deg;
    --rot-m: 2deg;
    --rot-e: -4deg;
    --glow: drop-shadow(0 0 14px rgba(0,122,204,0.85)) drop-shadow(0 0 36px rgba(0,122,204,0.38));
    --aura: radial-gradient(circle, rgba(0,122,204,0.28) 0%, transparent 70%);
}

/* Bootstrap — bottom-right */
.ico-bt {
    width: 90px;
    height: 90px;
    bottom: 10%;
    left: 55%;
    --if: 8.5s;
    --id: -5s;
    --fy: -15px;
    --rot-s: 2deg;
    --rot-m: -4deg;
    --rot-e: 3deg;
    --glow: drop-shadow(0 0 16px rgba(121,82,179,0.85)) drop-shadow(0 0 40px rgba(121,82,179,0.38));
    --aura: radial-gradient(circle, rgba(121,82,179,0.28) 0%, transparent 70%);
}

/* Rocket (tenlua) — far top-right */
.ico-rocket {
    width: 80px;
    height: 80px;
    top: 8%;
    left: 65%;
    --if: 5.5s;
    --id: -2.5s;
    --fy: -22px;
    --rot-s: -8deg;
    --rot-m: 8deg;
    --rot-e: -6deg;
    --glow: drop-shadow(0 0 14px rgba(100,180,255,0.80)) drop-shadow(0 0 36px rgba(100,180,255,0.35));
    --aura: radial-gradient(circle, rgba(100,180,255,0.25) 0%, transparent 70%);
}

/* GetCode brand icon — centre, subtle */
.ico-getcode {
    width: 130px;
    height: 130px;
    top: 52%;
    left: 34%;
    --if: 10s;
    --id: -6s;
    --fy: -10px;
    --rot-s: 0deg;
    --rot-m: 3deg;
    --rot-e: -2deg;
    --glow: drop-shadow(0 0 12px rgba(59,130,246,0.80)) drop-shadow(0 0 30px rgba(59,130,246,0.35));
    --aura: radial-gradient(circle, rgba(59,130,246,0.22) 0%, transparent 70%);
}

/* Floating tiny particles */
.particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: part-fly var(--pf) ease-in-out infinite var(--pd);
}

@keyframes part-fly {
    0%,100% {
        transform: translate(0,0) scale(1);
        opacity: .5;
    }

    50% {
        transform: translate(var(--px),var(--py)) scale(1.5);
        opacity: 1;
    }
}

/* Code snippets */
.lp-snip {
    position: absolute;
    background: rgba(4,7,14,0.78);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 16px;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.85;
    color: #4e6080;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
    animation: snip-float var(--fd) ease-in-out infinite var(--fdl);
    z-index: 7;
}

@keyframes snip-float {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

.snip-a {
    top: 7%;
    left: 5%;
    width: 240px;
    --fd: 7s;
    --fdl: 0s;
}

.snip-b {
    bottom: 20%;
    left: 38%;
    width: 210px;
    --fd: 5.5s;
    --fdl: 1.8s;
}

.t-kw {
    color: #818cf8;
}

.t-fn {
    color: #34d399;
}

.t-st {
    color: #fbbf24;
}

.t-cm {
    color: #2a3a50;
    font-style: italic;
}

.t-nu {
    color: #f87171;
}

/* Brand */
.lp-brand {
    position: absolute;
    top: 28px;
    left: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.lp-brand-ico {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(59,130,246,0.5);
}

.lp-brand-txt {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

    .lp-brand-txt span {
        color: #60a5fa;
    }

/* ════════════════════════════════
           RIGHT  30%
        ════════════════════════════════ */
.lp-right {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    padding: 36px 30px;
    background: #060a14;
    border-left: 1px solid var(--border);
    overflow-y: auto;
}

.lp-form-block {
    animation: form-in .45s cubic-bezier(.22,.68,0,1.18) both;
}

@keyframes form-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-eyebrow {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.lp-ftitle {
    font-size: 23px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.lp-fsub {
    font-size: 12.5px;
    color: var(--text-2);
    margin-bottom: 22px;
}

.lp-alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .lp-alert > i {
        flex-shrink: 0;
        margin-top: 2px;
    }

.lp-alert--err {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #f87171;
}

.lp-alert__list {
    margin: 0;
    padding: 0 0 0 1.1em;
    list-style: disc;
    color: inherit;
}

    .lp-alert__list li + li {
        margin-top: 4px;
    }

.lp-grp {
    margin-bottom: 14px;
}

.lp-lbl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

    .lp-lbl a {
        font-size: 11.5px;
        color: #60a5fa;
        text-decoration: none;
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
        opacity: .85;
        transition: opacity .2s;
    }

        .lp-lbl a:hover {
            opacity: 1;
            text-decoration: underline;
        }

.lp-inp-wrap {
    position: relative;
}

.lp-ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 11.5px;
    pointer-events: none;
    transition: color .2s;
}

.lp-inp {
    width: 100%;
    padding: 10px 12px 10px 34px;
    background: var(--inp-bg);
    border: 1px solid var(--inp-border);
    border-radius: 9px;
    color: var(--text);
    font-size: 13px;
    font-family: var(--font);
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}

    .lp-inp:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-glow);
        background: rgba(255,255,255,0.06);
    }

.lp-inp-wrap:focus-within .lp-ico {
    color: var(--accent);
}

.lp-inp::placeholder {
    color: rgba(122,138,170,0.25);
}

.lp-inp-pass {
    padding-right: 37px;
}

.lp-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 0;
    font-size: 11.5px;
    transition: color .2s;
    line-height: 1;
}

    .lp-eye:hover {
        color: var(--text-2);
    }

.lp-opts {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.lp-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
}

    .lp-remember input[type="checkbox"] {
        accent-color: var(--accent);
        width: 13px;
        height: 13px;
        cursor: pointer;
    }

.lp-submit {
    width: 100%;
    padding: 11px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background .2s, transform .12s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(59,130,246,0.35);
    margin-bottom: 15px;
}

    .lp-submit:hover {
        background: var(--accent-h);
        box-shadow: 0 6px 24px rgba(59,130,246,0.5);
    }

    .lp-submit:active {
        transform: scale(0.985);
    }

.lp-divider {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-3);
    font-size: 10px;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

    .lp-divider::before, .lp-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.lp-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

.lp-social {
    padding: 9px;
    background: var(--inp-bg);
    border: 1px solid var(--inp-border);
    border-radius: 9px;
    color: var(--text-2);
    font-size: 12px;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: border-color .2s, background .2s, color .2s;
}

    .lp-social:hover {
        border-color: rgba(255,255,255,0.16);
        background: rgba(255,255,255,0.07);
        color: var(--text);
    }

.lp-reg {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-2);
}

    .lp-reg a {
        color: #60a5fa;
        font-weight: 600;
        text-decoration: none;
    }

        .lp-reg a:hover {
            text-decoration: underline;
        }

/* Info bottom */
.lp-info {
    padding-top: 12px;
    border-top: 1px solid var(--border);
    animation: form-in .55s cubic-bezier(.22,.68,0,1.18) .1s both;
}

.lp-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 9.5px;
    font-weight: 700;
    color: #93c5fd;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lp-info-dot {
    width: 5px;
    height: 5px;
    background: #3b82f6;
    border-radius: 50%;
    animation: dot-blink 1.6s ease-in-out infinite;
}

@keyframes dot-blink {
    0%,100% {
        opacity: 1;
        box-shadow: 0 0 5px #3b82f6;
    }

    50% {
        opacity: .3;
        box-shadow: none;
    }
}

.lp-info-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 7px;
}

    .lp-info-title em {
        font-style: normal;
        background: linear-gradient(130deg, #60a5fa, #a78bfa);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.lp-info-desc {
    font-size: 11.5px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 14px;
}

.lp-stats {
    display: flex;
    gap: 18px;
}

.lp-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lp-stat-n {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.lp-stat-l {
    font-size: 9.5px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .7px;
}

.field-error {
    display: block;
    font-size: 11px;
    color: var(--danger);
    margin-top: 4px;
}

.alert-danger {
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.2);
    border-radius: 9px;
    padding: 10px 14px;
    color: var(--danger);
    font-size: 12.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

@media (max-width: 900px) {
    .lp-left {
        display: none;
    }

    .lp-right {
        flex: 1;
    }
}

/* Trang đăng nhập / đăng ký / quên mật khẩu: bỏ min-height main + footer margin lớn */
main:has(.lp-wrap) {
    min-height: 0;
}

    main:has(.lp-wrap) + footer {
        margin-top: 12px;
    }
