/* ===========================
   MII Core - Login
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
}

body{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#0f172a,#1e3a8a,#2563eb);
    padding:20px;
}

.login-container{
    width:100%;
    max-width:420px;
}

.login-card{
    background:#ffffff;
    border-radius:18px;
    padding:40px 30px;
    box-shadow:0 20px 45px rgba(0,0,0,.25);
    animation:fadeIn .6s ease;
}

.logo{
    text-align:center;
    margin-bottom:20px;
}

.logo img{
    width:90px;
    height:auto;
}

.login-card h1{
    text-align:center;
    color:#0f172a;
    font-size:28px;
    margin-bottom:8px;
}

.login-card p{
    text-align:center;
    color:#64748b;
    margin-bottom:30px;
    font-size:14px;
}

.input-group{
    position:relative;
    margin-bottom:20px;
}

.input-group i:first-child{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#64748b;
}

.input-group input{
    width:100%;
    height:50px;
    border:1px solid #d1d5db;
    border-radius:12px;
    padding:0 45px;
    font-size:15px;
    outline:none;
    transition:.3s;
}

.input-group input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.15);
}

#togglePassword{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    color:#64748b;
}

button{
    width:100%;
    height:50px;
    border:none;
    border-radius:12px;
    background:#2563eb;
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

.error{
    background:#fee2e2;
    color:#b91c1c;
    border:1px solid #fecaca;
    border-radius:10px;
    padding:12px;
    margin-bottom:20px;
    text-align:center;
    font-size:14px;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:480px){

    .login-card{
        padding:30px 20px;
    }

    .login-card h1{
        font-size:24px;
    }

}