* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  background: #f7f8fb;
  color: #1b1d22;
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  min-height: 100vh;
}

.login-panel {
  background: #ffffff;
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  box-shadow: 20px 0 40px rgba(15, 23, 42, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark {
  width: 140px;
  height: auto;
}

.login-panel h1 {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #7b8190;
  width: 100%;
}

.field input {
  border: 1px solid #dbe1f0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.field input:focus {
  border-color: #2d4fe7;
  box-shadow: 0 0 0 3px rgba(45, 79, 231, 0.15);
}

.password-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.password-row input {
  flex: 1;
}

.toggle-password {
  background: #eef2ff;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.forgot {
  text-decoration: none;
  font-size: 12px;
  color: #2d4fe7;
  text-align: right;
}

.primary {
  background: #2d4fe7;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

.message {
  font-size: 13px;
  color: #d82c2c;
}

.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  z-index: 999;
}

.whatsapp-fab:hover {
  filter: brightness(0.95);
}

.whatsapp-fab-icon {
  width: 26px;
  height: 26px;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 998;
}

.chat-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #2d4fe7;
  color: #ffffff;
}

.chat-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}

.chat-panel-close {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
}

.chat-panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f8ff;
  min-height: 160px;
}

.chat-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 90%;
}

.chat-bubble-ai {
  background: #ffffff;
  color: #1f2b5e;
  align-self: flex-start;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.chat-panel-footer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e6ebf7;
  background: #ffffff;
}

.chat-input {
  flex: 1;
  border: 1px solid #dbe1f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.chat-send {
  border: none;
  background: #2d4fe7;
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.image-panel {
  background-image: url("/img/tratorarmac-thumb.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 36px;
}

.brand {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #2d4fe7;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  z-index: 999;
}

.chat-fab-icon {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .image-panel {
    display: none;
  }
  .login-panel {
    box-shadow: none;
  }
}
