*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins', sans-serif;
}

body{
  background:#ecebe7;
  min-height:100vh;
}

.page-wrapper{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px 20px;
}

.container{
  width:100%;
  max-width:1100px;
  min-height:620px;
  display:flex;
  background:white;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(0,0,0,0.12);
}

/* LEFT PANEL */

.left-panel{
  width:50%;
  background:
    linear-gradient(rgba(40, 40, 45, .9), rgba(40, 40, 45, .9)),
    url("road.png");
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 50px;
  color:white;
}

.overlay{
  max-width:360px;
}

.brand h1{
  font-family:'Playfair Display', serif;
  font-size:54px;
  font-weight:600;
  line-height:1.1;
  margin-bottom:18px;
}

.run{
  color:#6e8f00;
  font-style:italic;
  font-weight:bold;
}

.tagline{
  font-size:16px;
  line-height:1.8;
  color:rgba(255,255,255,0.92);
}

/* RIGHT PANEL */

.right-panel{
  width:50%;
  background:#f8faf5;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px;
}

.form-card{
  width:100%;
  max-width:380px;
  background:white;
  border-radius:22px;
  padding:36px 32px;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
}

.form-card h2{
  color:#6e8f00;
  font-size:30px;
  font-weight:700;
  margin-bottom:8px;
}

.subtext{
  color:#666;
  font-size:14px;
  margin-bottom:24px;
}

label{
  display:block;
  font-size:14px;
  font-weight:500;
  color:#444;
  margin-bottom:8px;
}

input[type="text"],
input[type="password"]{
  width:100%;
  padding:14px 16px;
  margin-bottom:18px;
  border:1.5px solid #d6decf;
  border-radius:14px;
  outline:none;
  font-size:15px;
  background:#fbfcf9;
  transition:all 0.25s ease;
}

input[type="text"]:focus,
input[type="password"]:focus{
  border-color:#6e8f00;
  background:white;
  box-shadow:0 0 0 4px rgba(110, 143, 0, 0.10);
}

input::placeholder{
  color:#999;
}

.remember{
  display:flex;
  align-items:center;
  gap:8px;
  margin:2px 0 22px;
}

.remember input[type="checkbox"]{
  width:auto;
  margin:0;
  accent-color:#6e8f00;
}

.remember label{
  margin:0;
  font-size:14px;
  color:#555;
  font-weight:400;
}

.login-btn{
  width:100%;
  border:none;
  background:#6e8f00;
  color:white;
  padding:14px;
  border-radius:30px;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.25s ease;
  box-shadow:0 8px 18px rgba(110, 143, 0, 0.22);
}

.login-btn:hover{
  background:#5f7b00;
  transform:translateY(-2px);
  box-shadow:0 12px 22px rgba(110, 143, 0, 0.28);
}

.login-btn:active{
  transform:translateY(0);
}

.signup{
  margin-top:24px;
  text-align:center;
  font-size:14px;
  color:#666;
}

.signup a{
  color:#4c6ef5;
  text-decoration:none;
  font-weight:600;
}

.signup a:hover{
  text-decoration:underline;
}

/* ALERTS */

.error-message{
  color:#c62828;
  background:#fdecec;
  border:1px solid #f2b8b5;
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:18px;
  font-size:14px;
}

.success-message{
  color:#2e7d32;
  background:#edf8ee;
  border:1px solid #b9dfbc;
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:18px;
  font-size:14px;
}

/* RESPONSIVE */

@media(max-width:900px){
  .container{
    max-width:900px;
  }

  .brand h1{
    font-size:46px;
  }
}

@media(max-width:768px){
  .page-wrapper{
    padding:20px;
  }

  .container{
    flex-direction:column;
    min-height:auto;
  }

  .left-panel,
  .right-panel{
    width:100%;
  }

  .left-panel{
    min-height:240px;
    padding:35px 28px;
  }

  .overlay{
    max-width:100%;
    text-align:center;
  }

  .brand h1{
    font-size:42px;
  }

  .right-panel{
    padding:24px;
  }

  .form-card{
    max-width:100%;
    padding:28px 22px;
  }
}