:root {
  --primary: #3ea32e;
  --primary-dark: #2f8221;
  --primary-light: #5cbe4a;
  --accent: #c98a40;
  --accent-light: #e0b070;
  --bg: #f2faf0;
  --bg-alt: #e0f5da;
  --surface: #ffffff;
  --text: #153a0d;
  --text-secondary: #256518;
  --text-light: #5c8f50;
  --border: #bce9b1;
  --border-dark: #8dd67d;
  --success: #2f8221;
  --font-display: 'Lora', serif;
  --font-body: 'Nunito', sans-serif;
  --shadow-sm: 0 8px 24px rgba(46, 130, 28, 0.12);
  --shadow-md: 0 12px 28px rgba(46, 130, 28, 0.14);
  --shadow-lg: 0 20px 48px rgba(46, 130, 28, 0.16);
}

.login-page {
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  height: 100vh;
  overflow: hidden;
}

.login-shell {
  display: grid;
  height: 100vh;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
}

.login-visual {
  background:
    linear-gradient(135deg, rgba(21, 58, 13, 0.88), rgba(47, 130, 33, 0.8)),
    url("https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 32px 40px;
  position: relative;
}

.login-visual::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.32), transparent 48%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.login-brand,
.visual-copy,
.visual-bottom-stack,
.visual-access-card {
  position: relative;
  z-index: 1;
}

.login-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  width: fit-content;
}

.login-brand-icon {
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  color: var(--primary);
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.login-brand > span:last-child {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.login-brand > span:last-child span {
  color: var(--accent-light);
}

.visual-copy {
  max-width: 560px;
}

.visual-kicker {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.visual-copy h1 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 2.9rem;
  line-height: 1.08;
  margin-bottom: 18px;
}

.visual-copy p:last-child {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  max-width: 460px;
}

.visual-bottom-stack {
  display: grid;
  gap: 14px;
  max-width: 538px;
}

.visual-search-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  color: #ffffff;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  width: fit-content;
  backdrop-filter: blur(14px);
  transition: var(--transition);
}

.visual-search-link:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.62);
  transform: translateY(-2px);
}

.visual-access-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  padding: 20px;
  max-width: 430px;
}

.access-card-header {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.access-card-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  display: flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.visual-access-card strong {
  display: block;
}

.visual-access-card small {
  color: rgba(255, 255, 255, 0.74);
  display: block;
  line-height: 1.5;
  margin-top: 3px;
}

.access-path {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 14px;
}

.access-path span {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  display: flex;
  font-size: 1rem;
  height: 48px;
  justify-content: center;
}

.access-card-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.access-card-footer span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.access-card-footer strong {
  color: #ffffff;
  font-family: var(--font-display);
  white-space: nowrap;
}

.login-panel {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(242, 250, 240, 0.9), #ffffff 74%);
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 24px;
}

.login-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 470px;
  padding: 28px 34px;
  width: 100%;
}

.login-card-header {
  margin-bottom: 18px;
}

.login-card-header .section-label {
  margin-bottom: 8px;
}

.login-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-bottom: 6px;
}

.login-card-header p:last-child {
  color: var(--text-secondary);
  margin: 0;
}

.login-label-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.login-label-row label,
.form-group > label {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 900;
}

.login-label-row a {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 900;
}

.login-input-wrap {
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  display: flex;
  gap: 10px;
  padding: 0 14px;
  transition: var(--transition);
}

.login-input-wrap:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(62, 163, 46, 0.12);
}

.login-input-wrap > i {
  color: var(--text-light);
}

.login-input-wrap input {
  background: transparent;
  color: #0b2606;
  flex: 1;
  font-size: 1rem;
  font-weight: 800;
  min-width: 0;
  padding: 14px 0;
}

.login-input-wrap input::placeholder {
  color: var(--text-light);
}

.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover,
.login-input-wrap input:-webkit-autofill:focus,
.login-input-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: #0b2606;
  color: #0b2606;
  box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

.login-input-wrap:has(input:-webkit-autofill) {
  background: var(--bg);
}

.login-input-wrap input::selection {
  background: var(--bg-alt);
  color: var(--text);
}

.password-toggle {
  align-items: center;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.remember-row {
  align-items: center;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 9px;
  margin: 2px 0 16px;
}

.remember-row input {
  accent-color: var(--primary);
  height: 16px;
  width: 16px;
}

.login-submit {
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
}

.login-divider {
  align-items: center;
  color: var(--text-secondary);
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 12px;
  margin: 16px 0;
}

.login-divider::before,
.login-divider::after {
  background: var(--border);
  content: '';
  flex: 1;
  height: 1px;
}

.google-login-btn {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  display: flex;
  font-size: 0.94rem;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  transition: var(--transition);
  width: 100%;
}

.google-login-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.google-mark {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 50%;
  color: #4285f4;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.register-callout {
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 12px 14px;
}

.register-callout span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 800;
}

.register-callout a {
  align-items: center;
  background: var(--primary);
  border-radius: 12px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  justify-content: center;
  padding: 10px 14px;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .login-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .login-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 420px;
  }

  .visual-copy h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 640px) {
  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 20px 14px;
  }

  .login-card {
    border-radius: 20px;
    padding: 24px 18px;
  }

  .login-card-header h2 {
    font-size: 1.65rem;
  }

  .register-callout {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .register-callout a {
    width: 100%;
  }
}
