:root{
    --bg-1:#f7faff;
    --bg-2:#f3f6fc;
    --card:rgba(255,255,255,0.84);
    --text:#182336;
    --muted:#667085;
    --line:rgba(15,23,42,0.08);

    --primary:#2563eb;
    --primary-2:#4f8cff;
    --primary-dark:#1d4ed8;
    --primary-soft:#eaf1ff;

    --child:#8b5cf6;
    --child-soft:#f3ecff;
    --child-line:#d9c7ff;

    --success:#16a34a;
    --success-soft:#ecfdf3;
    --danger:#dc2626;
    --danger-soft:#fef2f2;

    --white:#ffffff;
    --shadow-xl:0 28px 80px rgba(15,23,42,0.12);
    --shadow-lg:0 18px 40px rgba(15,23,42,0.08);
    --shadow-md:0 10px 24px rgba(15,23,42,0.06);

    --radius-xl:30px;
    --radius-lg:22px;
    --radius-md:18px;
    --radius-sm:14px;
}

*{
    box-sizing:border-box;
}

html, body{
    margin:0;
    padding:0;
    min-height:100%;
    font-family:"Inter","Segoe UI",Arial,sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at top left, #edf4ff 0%, transparent 34%),
        radial-gradient(circle at top right, #f3eaff 0%, transparent 28%),
        radial-gradient(circle at bottom left, #ebfff2 0%, transparent 24%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

body{
    min-height:100vh;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    display:block;
    max-width:100%;
}

button,
input{
    font:inherit;
}

.lp-shell{
    position:relative;
    min-height:100vh;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px 18px;
}

.bg-orb{
    position:absolute;
    border-radius:999px;
    filter:blur(18px);
    opacity:.58;
    pointer-events:none;
}

.orb-1{
    width:320px;
    height:320px;
    background:#dbe9ff;
    top:-90px;
    left:-90px;
}

.orb-2{
    width:240px;
    height:240px;
    background:#eadcff;
    right:-50px;
    top:70px;
}

.orb-3{
    width:220px;
    height:220px;
    background:#dff8e8;
    bottom:40px;
    left:8%;
}

.lp-main{
    position:relative;
    z-index:2;
    width:100%;
    max-width:620px;
}

.brand-block{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    margin-bottom:24px;
    text-align:left;
}

.brand-logo-link{
    display:inline-flex;
}

.brand-logo{
    width:64px;
    height:64px;
    border-radius:20px;
    background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 16px 34px rgba(15,23,42,0.10);
    border:1px solid rgba(255,255,255,0.75);
    overflow:hidden;
    flex:0 0 auto;
}

.brand-logo img{
    width:82%;
    height:82%;
    object-fit:contain;
}

.brand-text h1{
    margin:0;
    font-size:34px;
    line-height:1.05;
    letter-spacing:-0.03em;
    font-weight:800;
}

.brand-text p{
    margin:5px 0 0;
    color:var(--muted);
    font-size:14px;
    letter-spacing:0.01em;
}

.login-card{
    position:relative;
    background:var(--card);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,0.65);
    border-radius:var(--radius-xl);
    box-shadow:var(--shadow-xl);
    padding:32px;
    overflow:hidden;
}

.login-card::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:4px;
    background:linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
}

.login-head{
    text-align:center;
    margin-bottom:24px;
}

.mini-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 13px;
    border-radius:999px;
    background:var(--primary-soft);
    color:var(--primary);
    font-size:12px;
    font-weight:700;
    margin-bottom:14px;
    border:1px solid rgba(37,99,235,0.08);
}

.login-head h2{
    margin:0 0 10px;
    font-size:34px;
    line-height:1.05;
    letter-spacing:-0.03em;
    font-weight:800;
}

.login-head p{
    margin:0;
    color:var(--muted);
    font-size:15px;
    line-height:1.75;
}

.alert{
    margin-bottom:18px;
    padding:16px 18px;
    border-radius:18px;
    font-size:14px;
    line-height:1.7;
}

.alert-success{
    background:var(--success-soft);
    border:1px solid #bbf7d0;
    color:#166534;
}

.alert-error{
    background:var(--danger-soft);
    border:1px solid #fecaca;
    color:#991b1b;
}

.alert ul{
    margin:8px 0 0 18px;
    padding:0;
}

.success-sub{
    margin-top:8px;
    font-size:13px;
    color:#166534;
}

.login-form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-group label{
    font-size:14px;
    font-weight:700;
    color:var(--text);
}

.form-control{
    width:100%;
    min-height:52px;
    border-radius:16px;
    border:1px solid #dbe2ea;
    background:rgba(255,255,255,0.96);
    color:var(--text);
    padding:14px 16px;
    outline:none;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-control:focus{
    border-color:#9cc0ff;
    box-shadow:0 0 0 4px rgba(37,99,235,0.10);
    background:#fff;
}

.action-group{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:4px;
}

.btn{
    position:relative;
    width:100%;
    min-height:56px;
    border-radius:18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:15px 18px;
    font-size:15px;
    font-weight:700;
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    border:1px solid transparent;
    box-shadow:var(--shadow-md);
    overflow:hidden;
    cursor:pointer;
}

.btn:hover{
    transform:translateY(-2px);
}

.btn-primary{
    color:#fff;
    background:linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
}

.btn-primary:hover{
    box-shadow:0 16px 28px rgba(37,99,235,0.22);
    background:linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-light{
    background:rgba(255,255,255,0.95);
    color:var(--text);
    border-color:rgba(15,23,42,0.08);
}

.btn-light:hover{
    background:#f9fafb;
}

.btn-outline-child{
    background:#fff;
    color:var(--child);
    border-color:var(--child-line);
}

.btn-outline-child:hover{
    background:#faf7ff;
}

.back-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--muted);
    font-size:14px;
    padding:4px 0;
}

.back-link:hover{
    color:var(--primary);
}

@media (max-width: 720px){
    .lp-shell{
        padding:16px;
    }

    .lp-main{
        max-width:100%;
    }

    .login-card{
        padding:24px 18px;
        border-radius:24px;
    }

    .brand-block{
        gap:12px;
        margin-bottom:20px;
    }

    .brand-logo{
        width:56px;
        height:56px;
        border-radius:18px;
    }

    .brand-text h1{
        font-size:29px;
    }

    .brand-text p{
        font-size:13px;
    }

    .login-head h2{
        font-size:28px;
    }

    .login-head p{
        font-size:14px;
    }

    .btn{
        min-height:54px;
        border-radius:16px;
    }
}