*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    background: #ffffff;
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* THREE.JS CANVAS */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* LAYOUT */
.page {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* LEFT BRAND PANEL */
.brand {
    display: none;
    position: relative;
    flex: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    /* Translucent to see background */
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem;
}

@media (min-width: 860px) {
    .brand {
        display: flex;
    }
}

.brand-glow-a {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.14) 0%, transparent 65%);
    top: -160px;
    right: -180px;
    pointer-events: none;
}

.brand-glow-b {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 220, 160, 0.09) 0%, transparent 65%);
    bottom: 60px;
    left: -100px;
    pointer-events: none;
}

.brand-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo img {
    height: 60px;
    object-fit: contain;
}

.brand-logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.brand-body {
    position: relative;
    z-index: 2;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.28);
    border-radius: 100px;
    padding: 0.3rem 1rem;
    font-size: 0.73rem;
    font-weight: 600;
    color: #00a8ff;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.brand-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00a8ff;
    animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .35;
        transform: scale(.65)
    }
}

.brand-h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #1a1a2e;
    margin-bottom: 1.1rem;
}

.brand-h1 span {
    background: linear-gradient(120deg, #00a8ff 20%, #00e8a2 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-desc {
    font-size: 0.92rem;
    color: #666666;
    line-height: 1.65;
    max-width: 310px;
}

.brand-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.stat {
    background: rgba(0, 0, 0, 0.035);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    backdrop-filter: blur(10px);
}

.stat-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.stat-lbl {
    font-size: 0.7rem;
    color: #999999;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* RIGHT FORM PANEL */
.panel {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.75rem;
    position: relative;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 860px) {
    .panel {
        width: 460px;
        flex-shrink: 0;
    }
}

.panel::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.form-box {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 1;
    animation: rise .55s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mob-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.4rem;
}

@media (min-width: 860px) {
    .mob-logo {
        display: none;
    }
}

.mob-logo img {
    height: 50px;
}

.mob-logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a2e;
}

.f-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.f-sub {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 2rem;
}

.flash {
    background: rgba(0, 220, 140, 0.07);
    border: 1px solid rgba(0, 220, 140, 0.22);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 1.4rem;
    font-size: 0.83rem;
    color: #00dcaa;
}

.f-field {
    margin-bottom: 1.1rem;
}

.f-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #666666;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.f-control {
    position: relative;
}

.f-ico {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.f-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 11px;
    padding: 0.82rem 0.95rem 0.82rem 2.7rem;
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    color: #1a1a2e;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.f-input::placeholder {
    color: #999999;
}

.f-input:focus {
    border-color: rgba(0, 168, 255, 0.55);
    background: rgba(0, 168, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.09);
}

.f-err {
    font-size: 0.76rem;
    color: #ff6b6b;
    margin-top: 0.38rem;
    padding-left: 0.2rem;
}

.f-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.f-check {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    cursor: pointer;
}

.f-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #00a8ff;
    cursor: pointer;
}

.f-check span {
    font-size: 0.83rem;
    color: #666666;
}

.f-forgot {
    font-size: 0.83rem;
    color: #00a8ff;
    text-decoration: none;
    transition: color .18s;
}

.f-forgot:hover {
    color: #00e8a2;
}

.f-btn {
    width: 100%;
    background: linear-gradient(135deg, #0098f0 0%, #005fd4 100%);
    border: none;
    border-radius: 11px;
    padding: 0.88rem 1rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 152, 240, 0.28);
    transition: transform .15s, box-shadow .2s, filter .2s;
}

.f-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(0, 152, 240, 0.42);
    filter: brightness(1.06);
}

.f-btn:active {
    transform: translateY(0);
}

.f-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.f-btn:hover::after {
    opacity: 1;
}

.f-footer {
    text-align: center;
    margin-top: 1.6rem;
    font-size: 0.83rem;
    color: #666666;
}

.f-footer a {
    color: #00a8ff;
    text-decoration: none;
    font-weight: 500;
    transition: color .18s;
}

.f-footer a:hover {
    color: #00e8a2;
}