*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #1E3320;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ── Split layout ── */
.login-wrap {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left panel – botanical brand side */
.login-brand {
  flex: 0 0 42%;
  background: linear-gradient(160deg, #2D4A2D 0%, #1E3320 55%, #0F1E10 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

/* decorative leaf circles */
.login-brand::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(123,174,96,0.12);
  top: -80px; left: -100px;
}
.login-brand::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(123,174,96,0.10);
  bottom: -60px; right: -60px;
}

.brand-logo {
  position: relative; z-index: 1;
  margin-bottom: 32px;
}
.brand-logo img {
  max-width: 180px;
  width: 100%;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35));
  image-rendering: -webkit-optimize-contrast;
}

.brand-tagline {
  position: relative; z-index: 1;
  color: #B8CFA8;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  max-width: 320px;
}
.brand-tagline h2 {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.brand-dots {
  position: relative; z-index: 1;
  margin-top: 48px;
  display: flex;
  gap: 8px;
}
.brand-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(184, 207, 168, 0.35);
}
.brand-dots span.active { background: #7BAE60; }

/* Right panel – form side */
.login-form-panel {
  flex: 1;
  background: #F4F0E8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-card h1 {
  font-size: 26px;
  font-weight: 700;
  color: #1E3320;
  margin-bottom: 6px;
}
.login-card .subtitle {
  color: #6B7A6B;
  font-size: 14px;
  margin-bottom: 36px;
}

/* Error messages — rock:errorTable emits div.errorTable > ul > li */
.errorTable { margin-bottom: 20px; }
.errorTable ul {
  list-style: none;
  background: #C0392B;
  border-left: 4px solid #922B21;
  border-radius: 7px;
  padding: 12px 16px;
  margin: 0;
}
.errorTable li {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  padding: 2px 0;
}
.errorTable li + li {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 4px;
  padding-top: 6px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #3A4A3A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}
.form-group input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #FFFFFF;
  border: 1.5px solid #C8BFB0;
  border-radius: 7px;
  color: #2A2A1F;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  border-color: #5A8A42;
  box-shadow: 0 0 0 3px rgba(90, 138, 66, 0.12);
}
.form-group input::placeholder { color: #A8A090; }

.btn-login {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  background: linear-gradient(135deg, #5A8A42 0%, #3D6B2C 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.btn-login:hover { opacity: 0.90; }
.btn-login:active { transform: scale(0.99); }

.login-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 11px;
  color: #9A9080;
}

/* ── Mobile: stack vertically, collapse brand panel to slim header ── */
@media (max-width: 640px) {
  .login-wrap { flex-direction: column; }
  .login-brand {
    flex: 0 0 auto;
    padding: 20px 24px;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
  }
  .brand-tagline p, .brand-dots { display: none; }
  .brand-tagline { max-width: none; text-align: left; }
  .brand-tagline h2 { font-size: 18px; margin-bottom: 0; }
  .brand-logo { margin-bottom: 0; }
  .brand-logo img { max-width: 56px; }
  .login-form-panel {
    flex: 1;
    padding: 32px 20px;
    align-items: flex-start;
  }
  .login-card { max-width: 100%; }
}
