/*
 * Verth-AGRO · Portal Digital
 * Stylesheet for login and register pages
 */

/* Basic Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-green-dark: #0F5132; /* Primary green from image */
  --color-green-medium: #198754;
  --color-green-light: #52B788;
  --color-text-dark: #212529;
  --color-text-medium: #495057;
  --color-text-light: #6C757D;
  --color-background-light: #FFFFFF;
  --color-border: #DEE2E6;
  --color-white: #FFFFFF;
  --color-red-error: #DC3545;

  /* Typography */
  --font-family-sans: 'Inter', sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.5;

  /* Spacing */
  --space-sm: 0.5rem;  /* 8px */
  --space-md: 1rem;    /* 16px */
  --space-lg: 1.5rem;  /* 24px */
  --space-xl: 2rem;    /* 32px */
  --space-2xl: 3rem;   /* 48px */
}

body {
  font-family: var(--font-family-sans);
  color: var(--color-text-medium);
  background-color: var(--color-background-light);
  min-height: 100vh;
}

/* Main Layout Shell */
.shell {
  display: flex;
  min-height: 100vh;
}

.left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.form-container {
  width: 100%;
  max-width: 400px;
}

.right {
  flex: 1;
  background-color: var(--color-green-dark);
  color: var(--color-white);
  display: none; /* Hidden by default on mobile */
  padding: var(--space-2xl);
  justify-content: center;
}

@media (min-width: 992px) {
  .right {
    display: flex;
  }
}

/* Brand and Titles */
.brand {
  margin-bottom: var(--space-lg);
}

.brand img {
  height: 44px;
  width: auto;
}

.title {
  font-size: 1.75rem; /* ~28px */
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
}

.subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

/* Card Styles */
.card {
  border: none;
  padding: 0;
}

.card-title {
  font-size: 1.25rem; /* ~20px */
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
}

.card-sub {
  font-size: 0.875rem; /* ~14px */
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

/* Form Fields */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-md);
}

.field span {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-size: 1rem;
}

.field input:focus {
  border-color: var(--color-green-medium);
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}

.pass-wrapper { position: relative; }
.pass-wrapper .eye {
  position: absolute; right: 0.75rem; top: 50%;
  transform: translateY(-50%); background: none; border: none;
  cursor: pointer; opacity: 0.5;
}

/* Links and Actions */
.row-actions {
  text-align: right;
  margin-bottom: var(--space-md);
}

.link {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.875rem;
}
.link:hover { text-decoration: underline; }
.link.strong { font-weight: 600; color: var(--color-green-dark); }


/* Buttons */
.btn-primary {
  width: 100%;
  background-color: var(--color-green-dark);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.75rem;
  border: 1px solid var(--color-green-dark);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #0B3D25;
}

/* Demo Credentials */
.demo-credentials {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background-color: #F8F9FA;
  border: 1px solid #E9ECEF;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}
.demo-credentials p { margin: 0.25rem 0; }
.demo-credentials span { font-weight: 600; }

/* Feedback messages */
.feedback {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-red-error);
  text-align: center;
}

/* Right Hero Section */
.hero { max-width: 480px; }
.hero h2 {
  font-size: 2.25rem; /* ~36px */
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero .lead {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  color: #E0E0E0;
}

.bullets {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-2xl);
}

.bullets li {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.bullets .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-right: var(--space-md);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bullets b {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.bullets p {
  font-size: 0.875rem;
  color: #E0E0E0;
  line-height: 1.5;
}

/* Ícones SVG embutidos no CSS */
.icon-form {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.icon-check {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.icon-project {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='8.5' cy='7' r='4'%3E%3C/circle%3E%3Cpolyline points='17 11 19 13 23 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Citação */
.quote {
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--space-lg);
  border-radius: 0.5rem;
  border-left: 3px solid var(--color-green-light);
}
.quote p {
  font-size: 0.875rem;
  margin: 0;
}
.quote footer {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
}