.auth-body {
  margin: 0;
  background-color: #f3ecd9;
  font-family: "Outfit", -apple-system, "Segoe UI", Roboto, sans-serif;
}

.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

.auth-hero {
  flex-shrink: 0;
  height: 340px;
  background-image: url("../img/farm-login-bg.png");
  background-size: cover;
  background-position: center top;
  background-color: #f3ecd9;
  position: relative;
}

.auth-hero-content {
  padding: 56px 24px 0;
}

/* Desktop / wide viewport: a real two-panel layout instead of the phone mock-up stretched
   across the page — image panel and form panel each fill the viewport height side by side. */
@media (min-width: 900px) {
  .auth-screen {
    flex-direction: row;
  }

  .auth-hero {
    flex: 1 1 55%;
    height: 100vh;
    background-image: url("../img/farm-login-bg-wide.jpg");
    background-position: center center;
    display: flex;
    align-items: flex-start;
  }

  .auth-hero-content {
    padding: 4rem 5vw 0;
    max-width: 34rem;
  }

  .auth-sheet {
    flex: 1 1 45%;
    height: 100vh;
    overflow-y: auto;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
  }

  .auth-form-wrap {
    width: 100%;
    max-width: 24rem;
  }
}

@media (min-width: 1400px) {
  .auth-logo {
    font-size: 56px;
  }

  .auth-tagline {
    font-size: 30px;
  }

  .auth-subtext {
    font-size: 16px;
    max-width: 22rem;
  }
}

.auth-logo {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  color: #63a950;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.auth-tagline {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: #1f2937;
  margin: 14px 0 6px;
}

.auth-subtext {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #4b5563;
  max-width: 15.5rem;
  margin: 0;
}

.auth-sheet {
  flex: 1;
  position: relative;
  z-index: 2;
  margin-top: -28px;
  background-color: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 28px 24px 40px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
}

.auth-sheet-title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #1f2937;
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  color: #1f2937;
  background-color: #ffffff;
}

.auth-input:focus {
  outline: none;
  border-color: #63a950;
  box-shadow: 0 0 0 3px rgba(99, 169, 80, 0.15);
}

.auth-password-wrapper {
  position: relative;
}

.auth-password-wrapper .auth-input {
  padding-right: 2.75rem;
}

.auth-password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 1rem;
  opacity: 0.5;
  cursor: pointer;
  line-height: 1;
}

.auth-password-toggle.is-visible {
  opacity: 0.9;
}

.auth-field-error,
.auth-error {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.3rem;
}

.auth-btn-primary {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 0.95rem;
  background-color: #63a950;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.auth-btn-primary:hover {
  background-color: #4a8339;
  transform: translateY(-1px);
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-forgot-link {
  display: block;
  text-align: center;
  margin-top: 1.1rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #63a950;
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.4rem 0;
}

.auth-divider span {
  flex: 1 1 auto;
  height: 1px;
  background-color: #e5e7eb;
}

.auth-google-btn {
  display: flex;
  justify-content: center;
}

.auth-google-btn > div {
  width: 100%;
  display: flex;
  justify-content: center;
}
