:root{
  --page-bg: #ffffff;
  --green: #2E7D32;         /* Natural green */
  --green-dark: #1B5E20;    /* Button */
  --charcoal: #2b2b2b;      /* Dark grey text */
  --muted: #5a5a5a;

  --panel-radius: 22px;
  --shadow: 0 22px 60px rgba(0,0,0,.18);
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--charcoal);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px;
}

/* Big rounded container */
.shell{
  width: min(1200px, 100%);
  background: #fff;
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  min-height: 560px;
}

/* LEFT HERO */
.hero{
  position: relative;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.15)),
    url("../img/login-hero.jpg");
  background-size: cover;
  background-position: center;
  padding: 28px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top row: brand left */
.hero-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 14px;
}

/* Left: (logo + name) */
.hero-brandwrap{
  display:flex;
  align-items:center;
  gap: 12px;
}

.hero-logo{
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.85);
  padding: 8px;
}

.hero-brand{
  color: #fff;
  font-weight: 800;
  letter-spacing: .3px;
}

/* (Optional) If you ever re-add links in the hero later */
.hero-nav{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}
.hero-nav__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.hero-nav__link:hover{
  filter: brightness(1.05);
  background: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.hero-nav__link:active{ transform: translateY(0); }
.hero-nav__link:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}

/* hero text */
.hero-copy{
  max-width: 520px;
  padding-bottom: 18px;
}

.hero-copy h1{
  margin:0;
  font-size: 56px;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -.5px;
}

.hero-copy h1 span{
  display:block;
  font-weight: 900;
}

.hero-copy p{
  margin: 14px 0 0;
  color: rgba(255,255,255,.9);
  font-size: 16px;
  line-height: 1.45;
}

/* RIGHT LOGIN PANEL */
.panel{
  background: var(--green);
  padding: 34px 30px;
  display:flex;
  flex-direction: column;
  justify-content: center;
}

.panel-inner{
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.panel-logo{
  width: 190px;
  max-width: 80%;
  display:block;
  margin: 0 auto 14px;
}

.panel h2{
  margin: 0 0 6px;
  text-align:center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.panel p{
  margin: 0 0 18px;
  text-align:center;
  color: rgba(255,255,255,.9);
  font-size: 14px;
}

.alert{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.12);
  padding: 10px 12px;
  border-radius: 12px;
  margin: 12px 0 14px;
  color: var(--charcoal);
  font-size: 14px;
}

label{
  display:block;
  font-size: 13px;
  margin-bottom: 6px;
  color: rgba(255,255,255,.95);
  font-weight: 700;
}

.row{ margin-bottom: 14px; }

input{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.22);
  background: #ffffff;
  color: var(--charcoal);
  outline: none;
}

input:focus{
  border-color: rgba(27,94,32,.8);
  box-shadow: 0 0 0 4px rgba(27,94,32,.25);
}

.btn{
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: var(--green-dark);
  color: #ffffff;
  font-weight: 900;
  cursor:pointer;
  font-size: 15px;
}

.btn:hover{ filter: brightness(0.95); }

.footer{
  margin-top: 14px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  text-align:center;
  line-height: 1.35;
}

/* Links under the login form */
.panel-links{
  margin-top: 12px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
}

.panel-links__row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
}

.panel-links__row--center{
  justify-content: center;
}

.panel-links__dot{
  opacity: .65;
  margin: 0 8px;
}

.panel-links a,
.panel a{
  color: rgba(255,255,255,.95);
  font-weight: 900;
  text-decoration: none;
}

.panel-links a:hover,
.panel a:hover{
  text-decoration: underline;
}

/* Small screens */
@media (max-width: 980px){
  body{ padding: 18px; }
  .shell{
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .hero{
    min-height: 300px;
  }
  .hero-copy h1{
    font-size: 40px;
  }
}

@media (max-width: 520px){
  .hero-top{
    align-items:flex-start;
  }
  .panel-links__row{
    justify-content: flex-start;
  }
}
