/* ============================================
   GLOBAL RESET
============================================ */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg,#0f172a,#020617);
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
}

/* ============================================
   LOGIN BOX
============================================ */

.login-box{
    width:350px;
    padding:40px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border-radius:20px;
    box-shadow:0 0 40px rgba(0,255,255,0.2);
    text-align:center;
    position:relative;
    overflow:hidden;
}

/* Glowing Border */
.login-box::before{
    content:"";
    position:absolute;
    top:-2px;
    left:-2px;
    right:-2px;
    bottom:-2px;
    background:linear-gradient(45deg,#00f2fe,#4facfe,#00f2fe);
    z-index:-1;
    filter:blur(20px);
    opacity:0.6;
}

.login-box h2{
    margin-bottom:30px;
    font-weight:600;
    letter-spacing:1px;
}

/* ============================================
   INPUT FIELDS
============================================ */

.login-box input{
    width:100%;
    padding:12px 15px;
    margin:10px 0;
    border:none;
    outline:none;
    border-radius:10px;
    background:rgba(255,255,255,0.1);
    color:white;
    font-size:14px;
    transition:0.3s;
}

.login-box input:focus{
    background:rgba(255,255,255,0.2);
    box-shadow:0 0 10px #00f2fe;
}

/* ============================================
   BUTTON
============================================ */

.login-box button{
    width:100%;
    padding:12px;
    margin-top:20px;
    border:none;
    border-radius:10px;
    background:linear-gradient(45deg,#00f2fe,#4facfe);
    color:black;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.login-box button:hover{
    transform:scale(1.05);
    box-shadow:0 0 20px #00f2fe;
}

/* ============================================
   DASHBOARD CARD
============================================ */

.card{
    width:400px;
    padding:40px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(25px);
    border-radius:20px;
    text-align:center;
    box-shadow:0 0 50px rgba(0,255,255,0.2);
}

.card h2{
    margin-bottom:25px;
}

/* ============================================
   RELAY BUTTONS
============================================ */

.card button{
    padding:14px 30px;
    margin:10px;
    border:none;
    border-radius:12px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.on{
    background:linear-gradient(45deg,#22c55e,#16a34a);
    color:white;
}

.off{
    background:linear-gradient(45deg,#ef4444,#b91c1c);
    color:white;
}

.card button:hover{
    transform:scale(1.1);
    box-shadow:0 0 20px rgba(255,255,255,0.5);
}

/* ============================================
   STATUS
============================================ */

.status{
    margin-top:25px;
    font-size:18px;
    font-weight:500;
    padding:10px;
    border-radius:10px;
    background:rgba(255,255,255,0.1);
    transition:0.3s;
}

/* ============================================
   LOGOUT LINK
============================================ */

.card a{
    text-decoration:none;
    color:#facc15;
    font-weight:500;
}

.card a:hover{
    text-decoration:underline;
}

/* ============================================
   RESPONSIVE
============================================ */

@media(max-width:500px){
    .login-box,
    .card{
        width:90%;
    }
}