* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background: #0b1220;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

/* Animated gradient blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    animation: float 14s ease-in-out infinite;
}

.blob.b1 {
    width: 420px;
    height: 420px;
    background: #4da3ff;
    top: -120px;
    left: -120px;
}

.blob.b2 {
    width: 380px;
    height: 380px;
    background: #a855f7;
    bottom: -140px;
    right: -100px;
    animation-delay: -5s;
}

.blob.b3 {
    width: 300px;
    height: 300px;
    background: #22d3ee;
    top: 40%;
    left: 50%;
    animation-delay: -9s;
    opacity: .35;
}

@keyframes float {

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

    50% {
        transform: translate(40px, -30px) scale(1.1);
    }
}

.stage {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-shell {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

/* LEFT: brand panel */
.brand-side {
    position: relative;
    color: #fff;
    padding: 48px 40px;
    background:
        linear-gradient(135deg, rgba(77, 163, 255, .25), rgba(168, 85, 247, .25)),
        radial-gradient(circle at 20% 20%, rgba(77, 163, 255, .45), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, .4), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.brand-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
    pointer-events: none;
}

.brand-top {
    position: relative;
    z-index: 1;
}

.logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
}

.logo-pill i {
    color: #4da3ff;
    font-size: 18px;
}

.logo-pill span {
    color: #4da3ff;
}

.brand-hero {
    position: relative;
    z-index: 1;
    margin: 36px 0;
}

.brand-hero h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin: 0 0 14px;
}

.brand-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #4da3ff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-hero p {
    font-size: 15px;
    opacity: .78;
    line-height: 1.55;
    margin: 0;
    max-width: 380px;
}

.feat-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.feat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
}

.feat .dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4da3ff;
}

.brand-foot {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: .55;
}

/* RIGHT: form panel */
.form-side {
    background: #fff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-side h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0b1220;
    margin: 0 0 6px;
    letter-spacing: -.4px;
}

.form-side .sub {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 28px;
}

.floating-group {
    position: relative;
    margin-bottom: 16px;
}

.floating-group .form-control {
    height: 56px;
    padding: 18px 16px 8px 46px;
    font-size: 15px;
    border: 1.5px solid #e6e8ef;
    border-radius: 12px;
    background: #f8fafc;
    transition: .18s;
}

.floating-group .form-control:focus {
    background: #fff;
    border-color: #4da3ff;
    box-shadow: 0 0 0 4px rgba(77, 163, 255, .15);
}

.floating-group label {
    position: absolute;
    left: 46px;
    top: 18px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: .15s;
    background: transparent;
    padding: 0 4px;
}

.floating-group .form-control:focus+label,
.floating-group .form-control:not(:placeholder-shown)+label {
    top: -8px;
    left: 38px;
    font-size: 11px;
    color: #4da3ff;
    font-weight: 600;
    background: #fff;
}

.floating-group .icn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}

.floating-group .form-control:focus~.icn {
    color: #4da3ff;
}

.floating-group .toggle-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
}

.floating-group .toggle-eye:hover {
    color: #0b1220;
    background: #f1f5f9;
}

.row-helpers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 22px;
    font-size: 13px;
}

.row-helpers a {
    color: #4da3ff;
    text-decoration: none;
    font-weight: 600;
}

.row-helpers a:hover {
    text-decoration: underline;
}

.form-check-input:checked {
    background-color: #4da3ff;
    border-color: #4da3ff;
}

.btn-signin {
    height: 52px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    border: none;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #4da3ff 0%, #a855f7 100%);
    box-shadow: 0 12px 30px -8px rgba(77, 163, 255, .6);
    transition: .2s;
}

.btn-signin:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px -10px rgba(77, 163, 255, .7);
    color: #fff;
}

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

.alert-inline {
    display: none;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b42318;
    border: 1px solid #fecaca;
    margin-bottom: 14px;
}

.alert-inline.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-foot {
    text-align: center;
    font-size: 13px;
    color: #6c757d;
    margin-top: 22px;
}

.form-foot a {
    color: #4da3ff;
    font-weight: 700;
    text-decoration: none;
}

/* Responsive */
/* Tablet */
@media (max-width: 992px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .brand-side {
        padding: 36px 32px;
    }

    .brand-hero {
        margin: 24px 0;
    }

    .brand-hero h1 {
        font-size: 28px;
    }

    .brand-hero p {
        font-size: 14px;
    }

    .feat-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feat {
        font-size: 13px;
    }

    .form-side {
        padding: 36px 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .stage {
        padding: 0 !important;
        margin: 0;
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
    }

    .login-shell {
        max-width: 100vw !important;
        width: 100vw !important;
        border-radius: 0 !important;
        margin: 0;
        min-height: 100vh;
        min-height: 100dvh;
        background: #fff;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        grid-template-columns: 1fr;
    }

    .brand-side {
        padding: 32px 22px 26px;
        border-radius: 0 0 28px 28px;
        min-height: auto;
    }

    .brand-hero {
        margin: 18px 0 10px;
    }

    .brand-hero h1 {
        font-size: 24px;
    }

    .brand-hero p {
        font-size: 14px;
        max-width: none;
    }

    .feat-list {
        display: none;
    }

    .brand-foot {
        display: none;
    }

    .form-side {
        padding: 28px 22px 36px;
        flex: 1;
    }

    .form-side h2 {
        font-size: 22px;
    }

    .form-side .sub {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .floating-group .form-control {
        height: 52px;
        font-size: 14px;
    }

    .btn-signin {
        height: 50px;
        font-size: 14.5px;
    }

    .blob {
        filter: blur(70px);
        opacity: .35;
    }

    .blob.b1 {
        width: 280px;
        height: 280px;
    }

    .blob.b2 {
        width: 260px;
        height: 260px;
    }

    .blob.b3 {
        display: none;
    }
}

@media (max-width: 360px) {
    .brand-side {
        padding: 24px 18px 20px;
    }

    .form-side {
        padding: 22px 18px 28px;
    }

    .brand-hero h1 {
        font-size: 21px;
    }

    .row-helpers {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
