-->
/* RESET */
*{
margin:0;
padding:0;
box-sizing:border-box;
}
/* BODY */
body{
height:100vh;
display:flex;
justify-content:center;
align-items:center;
background:#f5efe6;
font-family:'Poppins',sans-serif;
}
/* CONTAINER */
.login-container{
width:900px;
height:500px;
display:flex;
background:#fff;
border-radius:20px;
overflow:hidden;
box-shadow:0 30px 80px rgba(0,0,0,0.15);
}
/* LEFT SIDE */
.login-left{
flex:1;
background:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),
url('images/ghee.jpg') center/cover;
display:flex;
align-items:center;
justify-content:center;
color:#fff;
padding:40px;
text-align:center;
}
.login-left h2{
font-family:'Playfair Display',serif;
font-size:28px;
line-height:1.3;
}
/* RIGHT SIDE */
.login-right{
flex:1;
padding:50px;
display:flex;
flex-direction:column;
justify-content:center;
}
/* HEADING */
.login-right h2{
font-family:'Playfair Display',serif;
margin-bottom:20px;
}
/* INPUT */
.input-box{
position:relative;
margin-bottom:15px;
}
.input-box input{
width:100%;
padding:12px 40px;
border:1px solid #ddd;
border-radius:8px;
font-size:14px;
}
/* ICON */
.input-box i{
position:absolute;
left:12px;
top:50%;
transform:translateY(-50%);
color:#999;
} -->
/* BUTTON */
/* .login-btn{
margin-top:10px;
padding:12px;
border:none;
border-radius:30px;
background:#c9a96e;
color:#000;
font-weight:500;
cursor:pointer;
transition:0.3s;
}
.login-btn:hover{
background:#000;
color:#fff;
}
/* EXTRA */
.extra{
margin-top:15px;
font-size:13px;
}
.extra a{
color:#c9a96e;
text-decoration:none;
}
/* WRAPPER */
.profile-wrapper{
position:relative;
display:inline-block;
}
/* PROFILE BUTTON */
.profile{
display:flex;
align-items:center;
gap:8px;
padding:8px 16px;
border-radius:30px;
background:linear-gradient(135deg,#1c1208,#3a2412);
color:#fff;
cursor:pointer;
} */
/* RIGHT SIDE CONTAINER */
/* .login-right{
width:100%; */
/* max-width:400px; 🔥 limit */
/* margin:auto;
}
.input-box{
width:100%;
padding:14px 16px;
}
.input-box input{
width:100%;
font-size:15px;
}
@media(max-width:768px){
.login-container{
flex-direction:column; /* 🔥 stack */
}
.login-left{
width:100%;
height:200px; /* 🔥 image chhoti */
}
.login-right{
width:100%;
padding:25px 20px;
}
}
input{
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
// function handleLogin(event){
// event.preventDefault(); // 🔥 reload stop
// let email = document.getElementById("email").value.trim();
// let password = document.getElementById("password").value.trim();
// let users = JSON.parse(localStorage.getItem("users")) || [];
// let user = users.find(u => u.email === email && u.password === password);
// if(user){
// localStorage.setItem("userLoggedIn", "true");
// localStorage.setItem("userName", user.name);
// alert("🎉 Login Successful!");
// window.location.href = "index.html";
// } else {
// alert("❌ Invalid email or password");
// }
// }
// logout option implement
// document.addEventListener("DOMContentLoaded", function(){
// let isLoggedIn = localStorage.getItem("userLoggedIn");
// let name = localStorage.getItem("userName");
// let nav = document.getElementById("nav-user");
// if(isLoggedIn === "true"){
// nav.innerHTML = `
// }
// });
// function logout(){
// localStorage.removeItem("userLoggedIn");
// localStorage.removeItem("userName");
// window.location.reload();
// }