*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#ececec;
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:20px;
}

.login-wrapper{
    width:100%;
    max-width:420px;
}

.login-box{
    background:#fff;

    border-radius:18px;

    padding:28px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);
}

.login-logo{
    text-align:center;
    margin-bottom:25px;
}

.login-logo img{
    width:200px;
    height:auto;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;

    margin-bottom:8px;

    font-weight:600;
    color:#1e293b;

    font-size:14px;
}

.input-box{
    position:relative;
}

.input-box i:first-child{
    position:absolute;

    left:15px;
    top:50%;

    transform:translateY(-50%);

    color:#94a3b8;
}

.input-box input{
    width:100%;

    height:50px;

    border:1px solid #dbe2ea;

    border-radius:10px;

    padding-left:45px;
    padding-right:50px;

    font-size:14px;

    outline:none;

    transition:.3s;
}

.input-box input:focus{
    border-color:#2563eb;
}

.show-password{
    position:absolute;

    top:0;
    right:0;

    width:50px;
    height:50px;

    border:none;
    background:none;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    color:#94a3b8;

    transition:.3s;
}

.show-password:hover{
    color:#2563eb;
}

.show-password i{
    font-size:16px;
}

.captcha-row{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
}

.captcha-box{
    width:120px;
    min-width:120px;
    height:50px;

    background:#2563eb;
    color:#fff;

    border-radius:10px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:22px;
    font-weight:700;

    letter-spacing:3px;

    user-select:none;
}

.captcha-box{

    background:
    linear-gradient(
    135deg,
    #2563eb,
    #1d4ed8
    );

    transform:rotate(-2deg);

    text-shadow:
    1px 1px 2px rgba(0,0,0,.3);

}

.refresh-captcha{
    width:50px;
    height:50px;

    flex-shrink:0;

    border:none;

    border-radius:10px;

    background:#f1f5f9;

    cursor:pointer;

    font-size:16px;

    transition:.3s;
}

.refresh-captcha:hover{
    background:#2563eb;
    color:#fff;
}

.captcha-input{
    flex:1;
    min-width:0;

    height:50px;

    border:1px solid #dbe2ea;
    border-radius:10px;

    padding:0 15px;

    font-size:14px;

    outline:none;

    transition:.3s;
}

.captcha-input:focus{
    border-color:#2563eb;
}

.login-option{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:18px;

    font-size:13px;
}

.login-option a{
    text-decoration:none;
    color:#2563eb;
}

.remember{
    display:flex;
    gap:8px;
    align-items:center;
}

.login-btn{
    width:100%;
    height:50px;

    border:none;

    background:#2563eb;
    color:#fff;

    font-size:15px;
    font-weight:600;

    border-radius:10px;

    cursor:pointer;

    transition:.3s;
}

.login-btn:hover{
    background:#1d4ed8;
}

.register-link{
    text-align:center;

    margin-top:18px;

    font-size:13px;
}

.register-link a{
    text-decoration:none;

    color:#2563eb;
    font-weight:600;
}

@media(max-width:768px){

    .login-wrapper{
        max-width:380px;
    }

    .login-box{
        padding:24px;
    }

    .captcha-box{
        width:110px;
        min-width:110px;
        font-size:20px;
    }

}

@media(max-width:480px){

    .login-wrapper{
        max-width:100%;
    }

    .login-box{
        padding:18px;
        border-radius:16px;
    }

    .login-logo{
        margin-bottom:20px;
    }

    .login-logo img{
        width:200px;
    }

    .login-option{
        flex-direction:column;
        gap:10px;
        align-items:flex-start;
    }

    .captcha-row{
        display:flex;
        align-items:center;
        gap:8px;
    }

    .captcha-box{
        width:95px;
        min-width:95px;
        height:48px;

        font-size:17px;
        letter-spacing:2px;
    }

    .refresh-captcha{
        width:48px;
        height:48px;
    }

    .captcha-input{
        height:48px;
        flex:1;
        min-width:0;
    }

    .input-box input{
        height:48px;
    }

    .show-password{
        width:48px;
        height:48px;
    }

    .login-btn{
        height:48px;
    }

}

.login-error{
    background:#fee2e2;
    color:#dc2626;
    border:1px solid #fecaca;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
    text-align:center;
    font-size:14px;
}

.register-link{
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.register-link a{
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover{
    text-decoration: underline;
}