/* ===== LOGIN ===== */
.login-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: stretch;
  z-index: 99999; overflow: hidden;
}
/* Painel esquerdo — foto da fábrica */
.login-left {
  flex: 1; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0a1f4e 0%, #1a3c7d 40%, #0f2b5e 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px;
}
.login-left-photo {
  position: absolute; inset: 0;
  background: url('/static/fibrat_fabrica.jpg') center 40% / cover no-repeat;
}
.login-left-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,31,78,0.70) 0%, rgba(26,60,125,0.50) 50%, rgba(10,31,78,0.78) 100%);
}
.login-left-content { position: relative; z-index: 2; }
.login-left-logo {
  height: 70px; margin-bottom: 22px;
  filter: brightness(0) invert(1); opacity: 0.95;
}
.login-left-title {
  font-size: 2.1rem; font-weight: 800; color: #fff;
  letter-spacing: -0.5px; line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.login-left-title span {
  display: block; font-size: 1rem; font-weight: 400;
  color: rgba(255,255,255,0.72); letter-spacing: 2px;
  text-transform: uppercase; margin-top: 6px;
}
.login-left-tags { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.login-tag {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9); padding: 6px 14px; border-radius: 20px;
  font-size: 0.78rem; letter-spacing: 0.5px; backdrop-filter: blur(4px);
}
.login-left-footer {
  position: relative; z-index: 2; margin-top: 36px;
  font-size: 0.7rem; color: rgba(255,255,255,0.35); letter-spacing: 0.3px;
}
/* Painel direito — formulário */
.login-box {
  width: 420px; min-width: 380px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 40px; box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  position: relative; text-align: center;
}
.login-box img { height: 52px; margin-bottom: 26px; }
.login-box h2 { color: #1a3c7d; font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.login-box .sub { color: #999; font-size: 0.82rem; margin-bottom: 30px; letter-spacing: 0.3px; }
.login-box input {
  width: 100%; padding: 13px 16px; border: 1.5px solid #e0e0e0; border-radius: 9px;
  font-size: 14px; margin-bottom: 12px; outline: none; transition: border 0.2s, box-shadow 0.2s;
  background: #fafafa; color: #333;
}
.login-box input:focus { border-color: #1a3c7d; background: #fff; box-shadow: 0 0 0 3px rgba(26,60,125,0.08); }
.login-box .btn-login {
  width: 100%; padding: 13px; letter-spacing: 0.5px;
  background: linear-gradient(135deg, #1a3c7d, #2c5aa0); color: white; border: none;
  border-radius: 9px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 14px rgba(26,60,125,0.35); margin-top: 4px;
}
.login-box .btn-login:hover { background: linear-gradient(135deg,#0f2b5e,#1a3c7d); box-shadow: 0 6px 20px rgba(26,60,125,0.45); transform: translateY(-1px); }
.login-box .erro { color: #dc3545; font-size: 12px; margin-top: 10px; min-height: 18px; }
.login-box .info { color: #198754; font-size: 12px; margin-top: 10px; }
.login-box-footer {
  position: absolute; bottom: 20px;
  font-size: 0.68rem; color: #ccc; letter-spacing: 0.3px;
}
.login-box-divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, #ebebeb, transparent);
  margin: 24px 0 18px;
}
.login-box-hint { font-size: 0.75rem; color: #bbb; line-height: 1.6; }
.login-user-bar {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.8);
}
.login-user-bar strong { color: white; }
.login-user-bar button {
  background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 10px; border-radius: 5px; cursor: pointer; font-size: 11px;
}
.login-user-bar button:hover { background: rgba(255,255,255,0.3); }

