*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark:   #1a4a1e;
  --green-mid:    #2d7a35;
  --green-light:  #4caf50;
  --green-pale:   #e8f5e9;
  --amber:        #f5a623;
  --amber-light:  #ffd54f;
  --cream:        #fffdf6;
  --text-dark:    #1a2a1b;
  --text-muted:   #5a7a5c;
  --shadow:       0 24px 64px rgba(26,74,30,0.22);
  --radius-card:  24px;
  --radius-input: 10px;
  --transition:   0.2s ease;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
}

/* ── SPLIT PAGE LAYOUT ── */
.page {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* LEFT SIDE (Image Section) */
.page::before {
  content: "";
  flex: 1;
  background-image: url('../assets/images/Agrob.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── RIGHT PANEL (LOGIN FORM) ── */
.right {
  flex: 0 0 620px; /* increased from 420px → 520px */
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 40px;
  height: 100vh;
  position: relative;
  box-shadow: -12px 0 40px rgba(0,0,0,0.08);
}
.right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-light), var(--amber), var(--green-light));
}

/* ── Logo ── */
.logo-wrap {
  margin-bottom: 24px;
  text-align: center;
  animation: fadeDown 0.6s 0.3s both;
}

.logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-pale), #c8e6c9);
  border: 3px solid var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 20px rgba(76,175,80,0.25);
}

.logo-svg { width: 60px; height: 60px; }

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.5px;
}

/* ── Form heading ── */
.form-head {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeDown 0.6s 0.45s both;
}

.form-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.form-head p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Form ── */
.form {
  width: 100%;
  animation: fadeDown 0.6s 0.6s both;
}

.field { margin-bottom: 16px; }

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-wrap { position: relative; }

.input-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 11px 13px 11px 38px;
  border: 1.5px solid #d4e6d4;
  border-radius: var(--radius-input);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.14);
}

/* ── Options ── */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}

.remember input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--green-mid);
}

.forgot {
  font-size: 13px;
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 500;
}
.forgot:hover { text-decoration: underline; }

/* ── Button ── */
.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-input);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(45,122,53,0.35);
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,122,53,0.45);
}

/* ── Footer ── */
.footer-note {
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.footer-note span { color: var(--green-mid); font-weight: 600; }

/* ── Animations ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .page {
    flex-direction: column;
  }

  .page::before {
    display: none;
  }

  .right {
    width: 100%;
    height: auto;
  }

  html, body {
    overflow: auto;
  }
}




/* Modal Background */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

/* Modal Box */
.modal-content {
  background: #fff;
  width: 400px;
  max-width: 90%;
  margin: 8% auto;
  padding: 30px;
  border-radius: 18px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
}

/* Success */
.success-msg {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  color: #2d7a35;
  margin-bottom: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px);}
  to { opacity: 1; transform: translateY(0);}
}