/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    min-height:100vh;
    background:url("background.png") center center/cover no-repeat fixed;
    overflow-x:hidden;
    position:relative;
}

/* Dark Overlay */

.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    backdrop-filter:blur(2px);
    z-index:-1;
}

/* ===========================
   MAIN CONTAINER
=========================== */

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

/* ===========================
   HEADER
=========================== */

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:30px 0;
    gap:30px;
}

.logo-section{
    display:flex;
    align-items:center;
    gap:25px;
}

.logo-section img{
    width:150px;
}

.title small{
    color:#333;
    font-size:15px;
}

.title h1{
    color:#fff;
    font-size:60px;
    font-weight:600;
    line-height:1.1;
}

.library-icon{
    color:#505060;
    font-size:70px;
    display:flex;
    gap:15px;
    opacity:.85;
}

/* ===========================
   MAIN SECTION
=========================== */

main{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;
    flex:1;
}

/* Left */

.hero-text{
    flex:1;
    color:#fff;
}

.hero-text h2{
    font-size:40px;
    font-weight:500;
    margin-bottom:10px;
}

.hero-text p{
    max-width:600px;
    font-size:22px;
    line-height:1.6;
    font-weight:300;
}

/* ===========================
   RIGHT PANEL
=========================== */

aside{
    width:360px;
    display:flex;
    flex-direction:column;
    gap:25px;
}

/* Login */

.login-card,
.welcome-card{

    background:rgba(255,255,255,.88);

    border-radius:10px;

    padding:28px;

    backdrop-filter:blur(12px);

    box-shadow:0 12px 40px rgba(0,0,0,.2);

}

.login-card h3{

    margin-bottom:20px;

    color:#333;

    font-size:28px;

}

.login-card input{

    width:100%;

    padding:14px;

    margin-bottom:16px;

    border:1px solid #ccc;

    border-radius:6px;

    outline:none;

    font-size:16px;

}

.login-card input:focus{

    border-color:#0080ff;

}

.login-card button{

    border:none;

    background:#0056d6;

    color:#fff;

    padding:13px 30px;

    border-radius:6px;

    cursor:pointer;

    font-size:16px;

    transition:.3s;

}

.login-card button:hover{

    background:#003da5;

}

.welcome-card small{

    color:#555;

}

.welcome-card hr{

    margin:18px 0;

}

.welcome-card h3{

    font-size:28px;

    color:#333;

}

/* ===========================
   NAVIGATION
=========================== */

nav{

    margin:60px auto 30px;

    width:100%;

}

nav ul{

    display:flex;

    justify-content:center;

    align-items:center;

    list-style:none;

    flex-wrap:wrap;

    gap:20px;

}

nav li{

    border-right:1px solid rgba(255,255,255,.4);

    padding-right:20px;

}

nav li:last-child{

    border:none;

}

nav a{

    color:#fff;

    text-decoration:none;

    font-size:18px;

    transition:.3s;

}

nav a:hover{

    color:#ffd500;

}

/* ===========================
   FOOTER
=========================== */

footer{

    text-align:center;

    padding:20px;

    color:#fff;

    font-size:15px;

}

/* ===========================
   TABLET
=========================== */

@media(max-width:992px){

header{

    flex-direction:column;

    text-align:center;

}

.logo-section{

    flex-direction:column;

}

main{

    flex-direction:column;

    text-align:center;

}

.hero-text{

    order:2;

}

aside{

    order:1;

    width:100%;

    max-width:450px;

}

.library-icon{

    display:none;

}

.title h1{

    font-size:48px;

}

.hero-text h2{

    font-size:40px;

}

.hero-text p{

    font-size:22px;

}

}

/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

.container{

    width:94%;

}

.logo-section img{

    width:110px;

}

.title h1{

    font-size:36px;

}

.title small{

    font-size:13px;

}

.hero-text h2{

    font-size:32px;

}

.hero-text p{

    font-size:18px;

}

.login-card,
.welcome-card{

    padding:22px;

}

.login-card h3{

    font-size:24px;

}

.welcome-card h3{

    font-size:22px;

}

nav ul{

    flex-direction:column;

    gap:15px;

}

nav li{

    border:none;

    padding:0;

}

nav a{

    display:block;

    width:100%;

    text-align:center;

    padding:12px;

    background:rgba(255,255,255,.15);

    border-radius:8px;

}

}

/* ===========================
   SMALL MOBILE
=========================== */

@media(max-width:480px){

.title h1{

    font-size:30px;

}

.hero-text h2{

    font-size:26px;

}

.hero-text p{

    font-size:16px;

}

.login-card button{

    width:100%;

}

}