/* Estilos da seção usuario — tokens globais vêm de fretes/css/vanderleia.css */

:root {
  --login-yellow: #FFEA55;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  background: #fff;
}

/* ── Layout split ── */
.form-section {
  width: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 48px 48px;
  background: #fff;
  position: relative;
}

.form-container {
  width: 100%;
  max-width: 420px;
}

/* ── Logo ── */
.logo-section {
  text-align: center;
  margin-bottom: 56px;
}

.logo {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo img {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.tagline {
  color: #999;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ── Formulário ── */
.form-group {
  margin-bottom: 28px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  color: var(--vl-dark);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vl-text-body);
  font-size: 18px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 18px 20px 18px 56px;
  border: 2px solid var(--vl-border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: var(--vl-bg);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--vl-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 39, 175, 0.08);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: var(--vl-text-body);
  font-weight: 400;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  margin-top: 8px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--vl-primary);
}

.checkbox-wrapper label {
  font-size: 14px;
  color: var(--vl-text-body);
  margin: 0;
  font-weight: 500;
}

.forgot-link {
  color: var(--vl-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.forgot-link:hover {
  color: var(--vl-dark);
}

.login-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--vl-primary) 0%, var(--vl-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(91, 39, 175, 0.35);
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(91, 39, 175, 0.4);
}

.login-btn:active  { transform: translateY(-1px); }
.login-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }

/* ── Hero (lado direito) ── */
.hero-section {
  width: 50%;
  background: linear-gradient(135deg, var(--vl-primary) 0%, var(--vl-dark) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 100px 60px 80px;
  color: #fff;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 48px;
  opacity: 0.9;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.stat-item {
  text-align: center;
  background: rgba(14, 13, 64, 0.5);
  padding: 48px 24px 36px;
  border-radius: 20px;
  position: relative;
  backdrop-filter: blur(10px);
}

.stat-icon {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  background: var(--login-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 234, 85, 0.4);
}

.stat-icon i { font-size: 24px; color: var(--vl-dark); }

.stat-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--login-yellow);
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.95;
  line-height: 1.5;
  color: #fff;
}

.truck-icon {
  position: absolute;
  bottom: 40px; right: 40px;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.1);
  transform: rotate(-15deg);
}

/* ── Mensagens de feedback ── */
.error-message {
  background: linear-gradient(135deg, #fee 0%, #fdd 100%);
  border: 2px solid #fcc;
  border-left: 5px solid #c33;
  color: #c33;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(204, 51, 51, 0.15);
}

.error-message i      { color: #c33; font-size: 18px; margin-top: 2px; }
.error-message strong { font-weight: 700; display: block; margin-bottom: 4px; }

.success-message {
  background: linear-gradient(135deg, #efe 0%, #dfd 100%);
  border: 2px solid #cfc;
  border-left: 5px solid #3c3;
  color: #363;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(51, 204, 51, 0.15);
}

.success-message i      { color: #3c3; font-size: 18px; margin-top: 2px; }
.success-message strong { font-weight: 700; display: block; margin-bottom: 4px; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsivo ── */
@media (max-width: 1024px) {
  .hero-title { font-size: 40px; }
}

@media (max-width: 768px) {
  body { flex-direction: column; }
  .form-section, .hero-section { width: 100%; }
  .form-section { order: 1; padding: 24px; }
  .hero-section { order: 2; padding: 40px 24px; min-height: 60vh; }
  .hero-title   { font-size: 32px; }
  .stats-grid   { grid-template-columns: 1fr; gap: 16px; }
  .truck-icon   { font-size: 80px; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .form-section    { padding: 20px; }
  .hero-section    { padding: 24px; }
  .remember-forgot { flex-direction: column; gap: 16px; align-items: stretch; }
}
