.library_portal{
    padding:80px 20px;
    background:#f8fafc;
    min-height:70vh;
}

.library-login-wrapper{
    max-width:480px;
    margin:0 auto;
}


.signup-text{
    text-align:center;
    margin-bottom:25px;
    font-size:16px;
    color:#555;
}

.signup-text a{
    color:#1d4ed8;
    font-weight:700;
    text-decoration:none;
}

.signup-text a:hover{
    text-decoration:underline;
}

.library-login-card{
    background:#fff;
    padding:45px;
    border-radius:18px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.library-icon{
    width:70px;
    height:70px;
    border-radius:50%;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 25px;
    font-size:28px;
    color:#16213e;
}

.library-login-card h2{
    text-align:center;
    font-size:38px;
    margin-bottom:12px;
    line-height:1.2;
}

.library-login-card p{
    text-align:center;
    color:#777;
    margin-bottom:35px;
    line-height:1.6;
}

.form-group{
    margin-bottom:22px;
}

.form-group label{
    display:block;
    font-size:15px;
    font-weight:600;
    margin-bottom:8px;
    color:#222;
}

.password-wrap{
    position:relative;
}

.library-login-card input[type="text"],
.library-login-card input[type="password"]{
    width:100%;
    height:56px;
    padding:0 18px;
    border:1px solid #d8d8d8;
    border-radius:10px;
    font-size:16px;
    transition:.3s;
    background:#fff;
    outline:none;
}

.password-wrap input{
    padding-right:50px;
}

.library-login-card input:focus{
    border-color:#1d4ed8;
    box-shadow:0 0 0 3px rgba(29,78,216,.12);
}

.library-login-card input::placeholder{
    color:#9ca3af;
    font-size:15px;
}

.toggle-password{
    position:absolute;
    right:18px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    color:#8a8a8a;
    font-size:18px;
}

.library-login-form button{
    width:100%;
    height:56px;
    background:#111827;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:17px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.library-login-form button:hover{
    background:#0b1220;
}

.forgot-password{
    text-align:right;
    margin-top:18px;
}

.forgot-password a{
    color:#6b7280;
    text-decoration:none;
    font-size:15px;
}

.forgot-password a:hover{
    color:#1d4ed8;
}


.library-user-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
}

.library-logout-btn{
    background:#e6782f;
    color:#fff;
    padding:10px 20px;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
    display:none;
}

.library-logout-btn:hover{
    background:#d56820;
    color:#fff;
}


.library-search-area{
    width:100%;
    max-width:900px;
    margin:0 auto 30px;
    padding:0 20px;
}

.library-search-box{
    position:relative;
}

.library-search-box input{
    width:100%;
    height:58px;
    border:1px solid #d9d9d9;
    border-radius:50px;
    padding:0 20px 0 55px;
    font-size:16px;
}

.search-icon{
    position:absolute;
    left:22px;
    top:50%;
    transform:translateY(-50%);
    color:#888;
}

.library-search-options {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top:20px;
    align-items: center;
    align-content: center;
}

.library-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}


.library-card{
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    padding:30px;
    display:flex;
    flex-direction:column;
    height:100%;
}

.library-card_info{
    flex:1;
}


.library-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    
}


.library-card .author{
    color:#666;
    margin-bottom:15px;
}


.read-more {
    display: inline-block;
    margin-top: 20px;
    background: #f47c20;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.library-pagination{
    margin:50px 0;
    text-align:center;
}

.library-pagination .page-numbers{
    display:inline-block;
    padding:10px 16px;
    margin:0 4px;
    border:1px solid #ddd;
    border-radius:6px;
    text-decoration:none;
    color:#333;
}

.library-pagination .current{
    background:#f47c20;
    border-color:#f47c20;
    color:#fff;
}

.library-pagination a:hover{
    background:#f47c20;
    border-color:#f47c20;
    color:#fff;
}


.library-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:40px;
    align-items:start;
}

.library-sidebar{
    background:#fff;
    padding:25px;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    position:sticky;
    top:120px;
}

.library-sidebar h3{
    margin:0 0 20px;
    font-size:24px;
}

.library-category-list{
    max-height:650px;
    overflow-y:auto;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.library-category-pill{
    display:inline-block;
    padding:8px 14px;
    border:1px solid #d9d9d9;
    border-radius:50px;
    text-decoration:none;
    color:#333;
    font-size:14px;
    transition:.3s;
}

.library-category-pill.active{
    background:#e6782f;
    color:#fff;
    border-color:#e6782f;
}

.library-category-pill:hover{
    background:#f58220;
    border-color:#f58220;
    color:#fff;
}




@media only screen and (max-width: 767px) {

    .library_portal{
        padding:50px 15px;
    }

    .library-login-card{
        padding:30px 22px;
    }

    .library-login-card h2{
        font-size:30px;
    }

    .library-login-card p{
        font-size:15px;
    }
	
	
	.library-user-header{
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
	
	.library-user-header h2 {
    font-size: 32px;
}

    .library-main{
        grid-template-columns: 1fr;
    }

    .library-sidebar{
        position: static;
        width: 100%;
        margin-bottom: 30px;
    }

    .library-grid{
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .library-card{
        width: 100%;
    }

    .library-search-area{
        margin-bottom: 30px;
    }

    #library-search{
        font-size:16px;
    }

    .library-search-type{
        justify-content:flex-start;
        gap:12px;
    }
	
.library-layout{  grid-template-columns:1fr;}
.library-category-list{ max-height:400px;}
		

}