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

html,
body{
    min-height:100%;
}

body{
    position:relative;
    overflow:hidden;
    font-family:Arial,sans-serif;
    background:
        radial-gradient(circle at 18% 18%, rgba(18,50,127,0.34), transparent 36%),
        radial-gradient(circle at 82% 78%, rgba(11,31,92,0.28), transparent 40%),
        #07153D;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.login-network-canvas{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:0;
}

.login-box{
    position:relative;
    z-index:1;
    width:100%;
    max-width:420px;
    background:rgba(255,255,255,0.98);
    border-radius:12px;
    padding:40px;
    border-top:6px solid #D4AF37;
    box-shadow:0 18px 50px rgba(0,0,0,0.34);
    backdrop-filter:blur(4px);
}

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

.login-logo{
    display:block;
    width:auto;
    max-width:350px;
    max-height:250px;
    height:auto;
    object-fit:contain;
    margin:0 auto 20px;
}

.logo p{
    color:#666;
    font-size:14px;
    line-height:1.45;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    color:#0B1F5C;
    font-weight:bold;
}

.form-control{
    width:100%;
    height:50px;
    border:1px solid #ccc;
    border-radius:8px;
    padding:0 15px;
    font-size:16px;
}

.form-control:focus{
    outline:none;
    border-color:#0B1F5C;
    box-shadow:0 0 0 3px rgba(11,31,92,0.12);
}

.password-wrapper{
    position:relative;
}

.password-wrapper .form-control{
    padding-right:52px;
}

.password-toggle{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    border:none;
    background:transparent;
    color:#0B1F5C;
    font-size:20px;
    cursor:pointer;
    line-height:1;
    padding:0;
}

.password-toggle:focus{
    outline:none;
}

.btn-login{
    width:100%;
    height:50px;
    border:none;
    border-radius:8px;
    background:#0B1F5C;
    color:#fff;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn-login:hover{
    background:#102B7A;
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(11,31,92,0.22);
}

.error-message{
    background:#ffebee;
    color:#c62828;
    padding:12px;
    border-radius:8px;
    margin-bottom:20px;
    text-align:center;
    font-size:14px;
}

@media(max-width:480px){
    body{
        overflow:auto;
    }

    .login-box{
        padding:30px 22px;
    }

    .login-logo{
        max-width:240px;
        max-height:105px;
    }
}

@media (prefers-reduced-motion: reduce){
    .login-network-canvas{
        display:none;
    }

    .btn-login{
        transition:none;
    }
}
