*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
background:#f3f6fb;
}

/* NAVIGATION */
nav{
background:#ffffff;
padding:15px 5%;
display:flex;
justify-content:space-between;
align-items:center;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
flex-wrap:wrap;
}

.logo{
font-size:22px;
font-weight:600;
color:#2563eb;
}

.nav-links{
display:flex;
flex-wrap:wrap;
justify-content:flex-end;
}

.nav-links a{
margin-left:15px;
text-decoration:none;
color:#444;
font-size:14px;
font-weight:500;
margin-top:5px;
}

.nav-links a:hover{
color:#2563eb;
}

/* MAIN CONTAINER */
.main{
display:flex;
min-height:calc(100vh - 70px);
}

/* LEFT SIDE */
.left{
flex:1;
background:linear-gradient(135deg,#2563eb,#1d4ed8);
color:#fff;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
padding:40px;
text-align:center;
}

.left h1{
font-size:32px;
margin-bottom:15px;
}

.left p{
max-width:320px;
opacity:0.9;
}

/* RIGHT SIDE */
.right{
flex:1;
background:#ffffff;
display:flex;
justify-content:center;
align-items:center;
padding:30px;
}

/* FORM BOX */
.login-box,
.register-box{
width:100%;
max-width:380px;
}

.login-box h2,
.register-box h2{
margin-bottom:20px;
color:#111827;
text-align:center;
}

/* FORM ELEMENTS */
input{
width:100%;
padding:12px;
margin-bottom:15px;
border:1px solid #ddd;
border-radius:6px;
font-size:14px;
transition:0.3s;
}

input:focus{
outline:none;
border-color:#2563eb;
box-shadow:0 0 0 2px rgba(37,99,235,0.1);
}

button{
width:100%;
padding:12px;
background:#2563eb;
border:none;
color:#fff;
border-radius:6px;
cursor:pointer;
font-size:15px;
font-weight:500;
transition:0.3s;
}

button:hover{
background:#1d4ed8;
}

/* ERROR MESSAGE */
.error{
color:#dc2626;
margin-bottom:12px;
text-align:center;
font-size:14px;
}

/* LINK SECTION */
.register-link,
.login-link{
margin-top:15px;
text-align:center;
font-size:14px;
}

.register-link a,
.login-link a{
color:#2563eb;
text-decoration:none;
font-weight:500;
}

.register-link a:hover,
.login-link a:hover{
text-decoration:underline;
}

/* MOBILE OPTIMIZATION */
@media(max-width:900px){

.main{
flex-direction:column;
}

.left{
height:auto;
padding:40px 20px;
}

.left h1{
font-size:24px;
}

.left p{
font-size:14px;
}

.right{
padding:20px;
}

.nav-links{
width:100%;
justify-content:center;
margin-top:10px;
}

.nav-links a{
margin:8px 10px;
}

button{
font-size:14px;
}

}