
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Poppins;
}

body{
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.6s;
    background:linear-gradient(135deg,#1a0933,#090018);
    overflow:hidden;
    position:relative;
}

/* BACKGROUND GLOW */

body::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(circle,#a855f7 0%,transparent 60%);
    filter:blur(120px);
    top:-100px;
    left:-100px;
    opacity:.6;
    animation:float 10s infinite alternate;
}

@keyframes float{
    from{transform:translateY(0)}
    to{transform:translateY(80px)}
}

/* LOGIN BOX */

.login-box{
    width:420px;
    padding:45px;
    border-radius:20px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.1);
    color:white;
    z-index:2;
}

.login-box h1{
    font-size:30px;
    margin-bottom:5px;
}

.login-box p{
    opacity:.7;
    font-size:14px;
    margin-bottom:30px;
}

.input{
    margin-bottom:20px;
}

.input input{
    width:100%;
    padding:14px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.2);
    background:transparent;
    color:white;
    outline:none;
    transition:.4s;
}

.input input:focus{
    border-color:#9f6bff;
    box-shadow:0 0 15px #9f6bff88;
}

.options{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    margin-bottom:25px;
}

.options a{
    color:#aaa;
    text-decoration:none;
}

.btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:10px;
    font-weight:500;
    color:white;
    cursor:pointer;
    background:linear-gradient(45deg,#6d28ff,#a855f7);
    transition:0.4s;
}

.btn:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px #6d28ff55;
}

/* STYLISH LAMP */

.lamp{
    position:absolute;
    top:40px;
    right:80px;
    width:160px;
    height:260px;
    display:flex;
    flex-direction:column;
    align-items:center;
    cursor:pointer;
    animation:swing 4s ease-in-out infinite;
    transform-origin:top;
    z-index:3;
}

@keyframes swing{
    0%{ transform:rotate(2deg); }
    50%{ transform:rotate(-2deg); }
    100%{ transform:rotate(2deg); }
}

.wire{
    width:2px;
    height:90px;
    background:white;
}

.lamp-head{
    width:90px;
    height:60px;
    background:linear-gradient(145deg,#2d2d2d,#111);
    border-radius:50px 50px 15px 15px;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:flex-end;
    box-shadow:0 10px 25px rgba(0,0,0,0.6);
}

.bulb{
    width:26px;
    height:26px;
    background:white;
    border-radius:50%;
    position:absolute;
    bottom:-13px;
    box-shadow:
        0 0 15px white,
        0 0 40px #a855f7,
        0 0 80px #a855f7;
}

.lamp-glow{
    position:absolute;
    bottom:-35px;
    width:70px;
    height:70px;
    border-radius:50%;
    background:radial-gradient(circle,#a855f7 0%,transparent 70%);
    filter:blur(8px);
}

.light{
    width:220px;
    height:200px;
    background:radial-gradient(ellipse at top,rgba(168,85,247,0.35),transparent 70%);
    clip-path:polygon(40% 0%,60% 0%,100% 100%,0% 100%);
    margin-top:-10px;
    filter:blur(10px);
    opacity:.7;
}

/* RIPPLE LAYERS */

.ripple{
    position:absolute;
    top:50%;
    left:50%;
    width:20px;
    height:20px;
    border-radius:50%;
    transform:translate(-50%,-50%);
    pointer-events:none;
}

.ripple span{
    position:absolute;
    width:100%;
    height:100%;
    border-radius:50%;
    background:rgba(0,0,0,0.25);
    animation:ripple 1s ease-out forwards;
}

.ripple span:nth-child(2){
    animation-delay:0.15s;
}

.ripple span:nth-child(3){
    animation-delay:0.3s;
}

@keyframes ripple{

    0%{
        transform:scale(1);
        opacity:.6;
    }

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

}

/* THEMES */

.theme1{ background:linear-gradient(135deg,#1a0933,#090018); }
.theme2{ background:linear-gradient(135deg,#1e3a8a,#020617); }
.theme3{ background:linear-gradient(135deg,#064e3b,#020617); }
.theme4{ background:linear-gradient(135deg,#4c0519,#020617); }

/* MOBILE */

@media (max-width:768px){

    .login-box{
        width:90%;
        padding:35px;
    }

    .lamp{
        top:10px;
        right:20px;
        transform:scale(.7);
        animation:none;
    }

    .light{
        width:150px;
        height:140px;
    }

}

@media (max-width:480px){

    .lamp{
        top:5px;
        right:10px;
        transform:scale(.55);
    }

    .light{
        width:120px;
        height:110px;
    }

}

