/* ===== ICLink Login / Landing Page ===== */

body{
    min-height: 100vh;
    background: linear-gradient(135deg, #1E4D91, #2F80ED);
}

.overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E4D91, #2F80ED);
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto !important; /* Forces it to ignore sidebar margins */
    padding: 0 20px; /* Prevents the box from touching the screen edges */
    box-sizing: border-box;
}

.logo{
    margin-bottom: 30px;
}

.logo h1{
    font-size: 48px;
    font-weight: 300;
    color: #fff;
}

.logo h1 .bold{
    font-weight: 700;
}

.logo h1 .light{
    font-weight: 300;
}

.logo p{
    color: rgba(255,255,255,.85);
    margin-top: 6px;
    font-size: 15px;
}

.login-box{
    width: 420px;
    max-width: 95%;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    text-align: center;
}

.input-box{
    position: relative;
    margin-bottom: 18px;
}

.input-box input{
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    transition: .3s;
}

.input-box input:focus{
    border-color: #2F80ED;
    outline: none;
    box-shadow: 0 0 8px rgba(47,128,237,.25);
}

.input-box i{
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
}

.login-btn{
    width: 100%;
    padding: 15px;
    background: #1E4D91;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: .3s;
}

.login-btn:hover{
    background: #2F80ED;
}

.links{
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    text-allign: center;
}

.links a{
    color: #1E4D91;
    font-size: 13px;
    font-weight: 600;
}

.links a:hover{
    text-decoration: underline;
}
.login-error{
    display:flex;
    align-items:flex-start;
    gap:10px;
    width:100%;
    background:#fde8e8;
    color:#b42318;
    border:1px solid #f5b7b1;
    border-radius:10px;
    padding:12px 14px;
    margin-bottom:18px;
    font-size:14px;
    line-height:1.4;
}

.login-error i{
    margin-top:2px;
    font-size:16px;
}

.login-error span{
    flex:1;
}

@media (max-width: 500px){
    .logo h1{
        font-size: 36px;
    }

    .login-box{
        width: 100%; /* Allows it to shrink naturally */
        padding: 30px 20px;
    }

    .links{
        flex-direction: column;
        align-items: center;
    }
}
